Skip to content

Commit

Permalink
fix(VRangeSlider): mimic VSlider readonly behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Mar 31, 2024
1 parent 4405214 commit 8b00a5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const VRangeSlider = genericComponent<VSliderSlots>()({
onSliderTouchstart,
position,
trackContainerRef,
readonly,
} = useSlider({
props,
steps,
Expand Down Expand Up @@ -167,8 +168,8 @@ export const VRangeSlider = genericComponent<VSliderSlots>()({
default: ({ id, messagesId }) => (
<div
class="v-slider__container"
onMousedown={ onSliderMousedown }
onTouchstartPassive={ onSliderTouchstart }
onMousedown={ !readonly.value ? onSliderMousedown : undefined }
onTouchstartPassive={ !readonly.value ? onSliderTouchstart : undefined }
>
<input
id={ `${id.value}_start` }
Expand Down

0 comments on commit 8b00a5b

Please sign in to comment.