Skip to content

Commit

Permalink
fix(VRangeSlider): do not focus other thumb if min==max
Browse files Browse the repository at this point in the history
fixes #20726
  • Loading branch information
KaelWD committed Dec 11, 2024
1 parent f804c50 commit c19bcf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export const VRangeSlider = genericComponent<VSliderSlots>()({
// and they are both at minimum value
// but only if focused from outside.
if (
max.value !== min.value &&
model.value[0] === model.value[1] &&
model.value[1] === min.value &&
e.relatedTarget !== stopThumbRef.value?.$el
Expand Down Expand Up @@ -247,6 +248,7 @@ export const VRangeSlider = genericComponent<VSliderSlots>()({
// and they are both at maximum value
// but only if focused from outside.
if (
max.value !== min.value &&
model.value[0] === model.value[1] &&
model.value[0] === max.value &&
e.relatedTarget !== startThumbRef.value?.$el
Expand Down

0 comments on commit c19bcf6

Please # to comment.