mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Allow decimal slider steps (#8501)
This commit is contained in:
parent
5ff757ad65
commit
4765114e80
@ -80,7 +80,11 @@ class HaSlider extends PaperSliderClass {
|
||||
}
|
||||
|
||||
_setImmediateValue(newImmediateValue) {
|
||||
super._setImmediateValue(Math.round(newImmediateValue));
|
||||
super._setImmediateValue(
|
||||
this.step >= 1
|
||||
? Math.round(newImmediateValue)
|
||||
: Math.round(newImmediateValue * 100) / 100
|
||||
);
|
||||
}
|
||||
|
||||
_calcStep(value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user