100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
fix issue with slider not moving after clicking on the input itself. Also fixed styling issue with filling the track in moz and ms. webkit still needs to be fixed
Michael Rademaker8870e2fa8328
diff --git a/ui/component/or-timeline/src/index.ts b/ui/component/or-timeline/src/index.tsindex e91364638..67138422b 100644--- a/ui/component/or-timeline/src/index.ts+++ b/ui/component/or-timeline/src/index.ts@@ -77,9 +77,13 @@ class OrTimeline extends LitElement {if (range) {range.style.left = newPlace + "px";}+ //Needed to move the slider after clicking the input itself+ const sliderInput = (<HTMLInputElement>this.shadowRoot.getElementById("or-timeline-slider"));+ if (sliderInput) {+ sliderInput.value = String(this.current);+ }}}-}public valueChange(e: any) {@@ -154,6 +158,11 @@ class OrTimeline extends LitElement {pointer-events: all;margin-top: -2px;}+ .slider::-moz-range-progress {+ background-color: var(--timeline-accent, #1D5632);+ height: 12px;+ border-radius: 6px;+ }.slider::-ms-track {cursor: pointer;@@ -174,6 +183,17 @@ class OrTimeline extends LitElement {margin-top: -2px;}+ .slider::-ms-fill-lower {+ background-color: var(--timeline-accent, currentColor);+ border: 0 none;+ border-radius: 6px;+ }++ .slider::-ms-fill-upper {+ background: transparent;+ border: 0 none;+ }+#timelineHourMarkers {position: relative;display: -webkit-box;