mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
Set input_slider value after min,max,step. (#291)
This avoids clobbering it with the default values of min, max, and step. Fixes HA issues 7301 and 7232.
This commit is contained in:
parent
d1d412c69f
commit
7fbc5df9a0
@ -60,11 +60,10 @@ Polymer({
|
||||
},
|
||||
|
||||
stateObjectChanged: function (newVal) {
|
||||
this.value = Number(newVal.state);
|
||||
this.min = Number(newVal.attributes.min);
|
||||
this.max = Number(newVal.attributes.max);
|
||||
|
||||
this.step = Number(newVal.attributes.step);
|
||||
this.value = Number(newVal.state);
|
||||
},
|
||||
|
||||
selectedValueChanged: function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user