Skip to content

Commit

Permalink
docs: fix private trapFocus prop being expose/generated
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jan 21, 2025
1 parent f0127c6 commit 6b5af16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
6 changes: 0 additions & 6 deletions docs/content/meta/DatePickerContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@
'type': '\'partial\' | \'always\'',
'required': false
},
{
'name': 'trapFocus',
'description': '<p>Whether focus should be trapped within the <code>MenuContent</code></p>\n',
'type': 'boolean',
'required': false
},
{
'name': 'updatePositionStrategy',
'description': '<p>Strategy to update the position of the floating element on every animation frame.</p>\n',
Expand Down
6 changes: 0 additions & 6 deletions docs/content/meta/DateRangePickerContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@
'type': '\'partial\' | \'always\'',
'required': false
},
{
'name': 'trapFocus',
'description': '<p>Whether focus should be trapped within the <code>MenuContent</code></p>\n',
'type': 'boolean',
'required': false
},
{
'name': 'updatePositionStrategy',
'description': '<p>Strategy to update the position of the floating element on every animation frame.</p>\n',
Expand Down
6 changes: 0 additions & 6 deletions docs/content/meta/PopoverContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@
'type': '\'partial\' | \'always\'',
'required': false
},
{
'name': 'trapFocus',
'description': '<p>Whether focus should be trapped within the <code>MenuContent</code></p>\n',
'type': 'boolean',
'required': false
},
{
'name': 'updatePositionStrategy',
'description': '<p>Strategy to update the position of the floating element on every animation frame.</p>\n',
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/Popover/PopoverContentImpl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,7 +38,7 @@ import { DismissableLayer } from '@/DismissableLayer'
import { FocusScope } from '@/FocusScope'
import { useFocusGuards, useForwardExpose, useForwardProps } from '@/shared'
const props = defineProps<PopoverContentImplProps>()
const props = defineProps<PopoverContentImplPrivateProps>()
const emits = defineEmits<PopoverContentImplEmits>()
const forwarded = useForwardProps(reactiveOmit(props, 'trapFocus', 'disableOutsidePointerEvents'))
Expand Down

0 comments on commit 6b5af16

Please sign in to comment.