Skip to content

Commit

Permalink
fix(VSliderThumb): patch memory leak in VSliderThumb (#19024)
Browse files Browse the repository at this point in the history
fixes #19022

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
peter-gy and johnleider authored Jan 13, 2024
1 parent f2dd5c0 commit 64618ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vuetify/src/components/VSlider/VSliderThumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export const VSliderThumb = genericComponent<VSliderThumbSlots>()({
indexFromEnd,
} = slider

const elevationProps = computed(() => !disabled.value ? elevation.value : undefined)
const { elevationClasses } = useElevation(elevationProps)
const { textColorClasses, textColorStyles } = useTextColor(thumbColor)

const { pageup, pagedown, end, home, left, right, down, up } = keyValues
Expand Down Expand Up @@ -129,7 +131,6 @@ export const VSliderThumb = genericComponent<VSliderThumbSlots>()({

useRender(() => {
const positionPercentage = convertToUnit(indexFromEnd.value ? 100 - props.position : props.position, '%')
const { elevationClasses } = useElevation(computed(() => !disabled.value ? elevation.value : undefined))

return (
<div
Expand Down

0 comments on commit 64618ff

Please sign in to comment.