diff --git a/docs/content/meta/DatePickerContent.md b/docs/content/meta/DatePickerContent.md index f06109d4e..a3bda8ff1 100644 --- a/docs/content/meta/DatePickerContent.md +++ b/docs/content/meta/DatePickerContent.md @@ -110,12 +110,6 @@ 'type': '\'partial\' | \'always\'', 'required': false }, - { - 'name': 'trapFocus', - 'description': '
Whether focus should be trapped within the MenuContent
Strategy to update the position of the floating element on every animation frame.
\n', diff --git a/docs/content/meta/DateRangePickerContent.md b/docs/content/meta/DateRangePickerContent.md index f06109d4e..a3bda8ff1 100644 --- a/docs/content/meta/DateRangePickerContent.md +++ b/docs/content/meta/DateRangePickerContent.md @@ -110,12 +110,6 @@ 'type': '\'partial\' | \'always\'', 'required': false }, - { - 'name': 'trapFocus', - 'description': 'Whether focus should be trapped within the MenuContent
Strategy to update the position of the floating element on every animation frame.
\n', diff --git a/docs/content/meta/PopoverContent.md b/docs/content/meta/PopoverContent.md index f06109d4e..a3bda8ff1 100644 --- a/docs/content/meta/PopoverContent.md +++ b/docs/content/meta/PopoverContent.md @@ -110,12 +110,6 @@ 'type': '\'partial\' | \'always\'', 'required': false }, - { - 'name': 'trapFocus', - 'description': 'Whether focus should be trapped within the MenuContent
Strategy to update the position of the floating element on every animation frame.
\n', diff --git a/packages/core/src/Popover/PopoverContentImpl.vue b/packages/core/src/Popover/PopoverContentImpl.vue index 989475284..34f6e11e5 100644 --- a/packages/core/src/Popover/PopoverContentImpl.vue +++ b/packages/core/src/Popover/PopoverContentImpl.vue @@ -20,9 +20,9 @@ export type PopoverContentImplEmits = DismissableLayerEmits & { closeAutoFocus: [event: Event] } -export interface PopoverContentImplProps - extends PopperContentProps, - DismissableLayerProps { +export interface PopoverContentImplProps extends PopperContentProps, DismissableLayerProps {} + +interface PopoverContentImplPrivateProps extends PopoverContentImplProps { /** * Whether focus should be trapped within the `MenuContent` * @defaultValue false @@ -38,7 +38,7 @@ import { DismissableLayer } from '@/DismissableLayer' import { FocusScope } from '@/FocusScope' import { useFocusGuards, useForwardExpose, useForwardProps } from '@/shared' -const props = defineProps