fix: don't pass on class name to slot

zio/stable
Daniel Roe 2022-11-30 09:49:07 +00:00
parent b997feb6b3
commit fc38c339a6
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55
1 changed files with 4 additions and 1 deletions

View File

@ -8,10 +8,13 @@ const props = defineProps<{
}>()
const account = props.account || (props.handle ? useAccountByHandle(props.handle!) : undefined)
defineOptions({
inheritAttrs: false,
})
</script>
<template>
<VMenu v-if="!disabled && account" placement="bottom-start" :delay="{ show: 500, hide: 100 }">
<VMenu v-if="!disabled && account" placement="bottom-start" :delay="{ show: 500, hide: 100 }" v-bind="$attrs">
<slot />
<template #popper>
<AccountHoverCard v-if="account" :account="account" />