Skip to content

Commit

Permalink
Merge pull request #2415 from tugcekucukoglu/slider
Browse files Browse the repository at this point in the history
Fixed #2414 - Slider v2 | Range slider get stuck when both handle on …
  • Loading branch information
tugcekucukoglu authored Apr 8, 2022
2 parents 2e246c2 + 7556463 commit 6f3d340
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ export default {
this.dragging = true;
this.updateDomData();
this.handleIndex = index;
if (this.range && this.modelValue[0] === this.max) {
this.handleIndex = 0;
}
else {
this.handleIndex = index;
}
event.preventDefault();
},
onDrag(event) {
Expand Down

0 comments on commit 6f3d340

Please sign in to comment.