Skip to content

Commit

Permalink
fix(VSpeedDial): proxy VMenu model
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Apr 19, 2024
1 parent 72f33dc commit 245f6d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/vuetify/src/labs/VSpeedDial/VSpeedDial.tsx
Expand Up @@ -7,6 +7,7 @@ import { makeVMenuProps, VMenu } from '@/components/VMenu/VMenu'

// Composables
import { makeComponentProps } from '@/composables/component'
import { useProxiedModel } from '@/composables/proxiedModel'
import { MaybeTransition } from '@/composables/transition'

// Utilities
Expand Down Expand Up @@ -35,7 +36,13 @@ export const VSpeedDial = genericComponent<OverlaySlots>()({

props: makeVSpeedDialProps(),

emits: {
'update:modelValue': (value: boolean) => true,
},

setup (props, { slots }) {
const model = useProxiedModel(props, 'modelValue')

const menuRef = ref<VMenu>()

const location = computed(() => {
Expand All @@ -54,6 +61,7 @@ export const VSpeedDial = genericComponent<OverlaySlots>()({
return (
<VMenu
{ ...menuProps }
v-model={ model.value }
class={ props.class }
style={ props.style }
contentClass={[
Expand Down

0 comments on commit 245f6d3

Please sign in to comment.