Commit 250e3f67 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by hetech

Slider: avoid NaN when min and max values ​​are equal (#12256)

parent fbe58a40
......@@ -212,7 +212,7 @@
},
setPosition(newPosition) {
if (newPosition === null) return;
if (newPosition === null || isNaN(newPosition)) return;
if (newPosition < 0) {
newPosition = 0;
} else if (newPosition > 100) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment