Fixed #2074 - Range slider get stuck when both handle on max value
parent
22721e81ce
commit
971b6b22a1
|
@ -133,10 +133,18 @@ export default {
|
|||
if (this.disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
DomHandler.addClass(this.$el, 'p-slider-sliding');
|
||||
this.dragging = true;
|
||||
this.updateDomData();
|
||||
|
||||
if (this.range && this.modelValue[0] === this.max) {
|
||||
this.handleIndex = 0;
|
||||
}
|
||||
else {
|
||||
this.handleIndex = index;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
},
|
||||
onDrag(event) {
|
||||
|
|
Loading…
Reference in New Issue