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) {
|
if (this.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DomHandler.addClass(this.$el, 'p-slider-sliding');
|
DomHandler.addClass(this.$el, 'p-slider-sliding');
|
||||||
this.dragging = true;
|
this.dragging = true;
|
||||||
this.updateDomData();
|
this.updateDomData();
|
||||||
|
|
||||||
|
if (this.range && this.modelValue[0] === this.max) {
|
||||||
|
this.handleIndex = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
this.handleIndex = index;
|
this.handleIndex = index;
|
||||||
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
onDrag(event) {
|
onDrag(event) {
|
||||||
|
|
Loading…
Reference in New Issue