Skip to content

Commit

Permalink
Merge pull request #1328 from PrefectHQ/p-tooltip/fix-class-attr-fall…
Browse files Browse the repository at this point in the history
…through-warnings

[p-tooltip] Fix classes on p-tooltip throw warnings.
  • Loading branch information
collincchoy authored May 31, 2024
2 parents b0f2205 + 4476e54 commit ebbf595
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Tooltip/PTooltip.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<TooltipProvider v-bind="delegatedProviderProps">
<TooltipRoot v-bind="delegatedRootProps">
<TooltipTrigger as-child>
<TooltipTrigger as-child v-bind="$attrs">
<slot />

<TooltipContent
Expand Down Expand Up @@ -42,6 +42,9 @@
ignoreNonKeyboardFocus: undefined,
})
defineOptions({
inheritAttrs: false,
})
const delegatedRootProps = computed<TooltipRootProps>(() => {
const { defaultOpen, open, delayDuration, disableHoverableContent, disableClosingTrigger, disabled, ignoreNonKeyboardFocus } = props
Expand Down

0 comments on commit ebbf595

Please sign in to comment.