Fixed #2074 - Range slider get stuck when both handle on max value

pull/2307/head
Tuğçe Küçükoğlu 2022-03-11 15:40:52 +03:00
parent 22721e81ce
commit 971b6b22a1
1 changed files with 10 additions and 2 deletions

View File

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