Merge pull request #2307 from tugcekucukoglu/range
Fixed #2074 - Range slider get stuck when both handle on max valuepull/2308/head
commit
e2493145e6
|
@ -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