mirror of https://github.com/ElemeFE/element
Slider: fix button jumping to 0 when clicked
parent
e33a784227
commit
d31b33a1f2
|
@ -169,6 +169,7 @@
|
|||
},
|
||||
|
||||
setPosition(newPosition) {
|
||||
if (newPosition === null) return;
|
||||
if (newPosition < 0) {
|
||||
newPosition = 0;
|
||||
} else if (newPosition > 100) {
|
||||
|
|
Loading…
Reference in New Issue