mirror of
https://github.com/home-assistant/frontend.git
synced 2026-09-29 08:23:53 +01:00
Allow decimal slider steps (#8501)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user