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

pull/12328/head
Jikkai Xiao 2018-08-07 15:32:59 +08:00 committed by hetech
parent fbe58a4015
commit 250e3f67ee
1 changed files with 1 additions and 1 deletions

View File

@ -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) {