Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/core/src/Select/SelectContentImpl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
ComponentPublicInstance,
Ref,
} from 'vue'
import type { PointerDownOutsideEvent } from '@/DismissableLayer'
import type { DismissableLayerProps, PointerDownOutsideEvent } from '@/DismissableLayer'
import type { PopperContentProps } from '@/Popper'
import type { AcceptableValue } from '@/shared/types'
import { useCollection } from '@/Collection'
Expand Down Expand Up @@ -60,7 +60,7 @@ export type SelectContentImplEmits = {
pointerDownOutside: [event: PointerDownOutsideEvent]
}

export interface SelectContentImplProps extends PopperContentProps {
export interface SelectContentImplProps extends PopperContentProps, DismissableLayerProps {
/**
* The positioning mode to use
*
Expand Down Expand Up @@ -99,6 +99,7 @@ const props = withDefaults(defineProps<SelectContentImplProps>(), {
align: 'start',
position: 'item-aligned',
bodyLock: true,
disableOutsidePointerEvents: true,
})
const emits = defineEmits<SelectContentImplEmits>()

Expand Down Expand Up @@ -285,7 +286,7 @@ provideSelectContentContext({
>
<DismissableLayer
as-child
disable-outside-pointer-events
:disable-outside-pointer-events="disableOutsidePointerEvents"
@focus-outside.prevent
@dismiss="rootContext.onOpenChange(false)"
@escape-key-down="emits('escapeKeyDown', $event)"
Expand Down
Loading