From c19bcf69cb5d99b989fb8d46c5fd4ec89777c48b Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 11 Dec 2024 18:53:45 +1100 Subject: [PATCH] fix(VRangeSlider): do not focus other thumb if min==max fixes #20726 --- packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx b/packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx index a3e4e0a195d..f9fc67613fd 100644 --- a/packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx +++ b/packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx @@ -212,6 +212,7 @@ export const VRangeSlider = genericComponent()({ // 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 @@ -247,6 +248,7 @@ export const VRangeSlider = genericComponent()({ // 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