diff --git a/packages/vuetify/src/components/VSpeedDial/VSpeedDial.tsx b/packages/vuetify/src/components/VSpeedDial/VSpeedDial.tsx index c972636e12c..b88fa58cf42 100644 --- a/packages/vuetify/src/components/VSpeedDial/VSpeedDial.tsx +++ b/packages/vuetify/src/components/VSpeedDial/VSpeedDial.tsx @@ -15,7 +15,6 @@ import { computed, ref } from 'vue' import { genericComponent, propsFactory, useRender } from '@/util' // Types -import type { ComputedRef } from 'vue' import type { OverlaySlots } from '@/components/VOverlay/VOverlay' import type { Anchor } from '@/util' @@ -45,11 +44,11 @@ export const VSpeedDial = genericComponent()({ const menuRef = ref() - const location = computed(() => { - const [y, x = 'center'] = props.location.split(' ') + const location = computed(() => { + const [y, x = 'center'] = props.location?.split(' ') ?? [] - return `${y} ${x}` - }) as ComputedRef + return `${y} ${x}` as Anchor + }) const locationClasses = computed(() => ({ [`v-speed-dial__content--${location.value.replace(' ', '-')}`]: true,