fix warning when passing extraneous props to floating action bar (#6919)

This commit is contained in:
Prospector
2026-07-29 13:02:40 +00:00
committed by GitHub
parent a8dcfa8a5d
commit 39745086fa
@@ -198,6 +198,9 @@ async function nudge(): Promise<void> {
} }
defineExpose({ nudge }) defineExpose({ nudge })
defineOptions({
inheritAttrs: false,
})
</script> </script>
<template> <template>
@@ -205,6 +208,7 @@ defineExpose({ nudge })
<Transition name="floating-action-bar" appear> <Transition name="floating-action-bar" appear>
<div <div
v-if="shown" v-if="shown"
v-bind="$attrs"
ref="barEl" ref="barEl"
class="floating-action-bar drop-shadow-2xl" class="floating-action-bar drop-shadow-2xl"
:class="inline ? 'floating-action-bar--inline z-10' : 'fixed bottom-0 p-4'" :class="inline ? 'floating-action-bar--inline z-10' : 'fixed bottom-0 p-4'"