diff --git a/src/components/ui/select/SelectContent.vue b/src/components/ui/select/SelectContent.vue index a88e26b9f..db1b705f3 100644 --- a/src/components/ui/select/SelectContent.vue +++ b/src/components/ui/select/SelectContent.vue @@ -20,9 +20,18 @@ defineOptions({ const { position = 'popper', + // Safari has issues with click events on portaled content inside dialogs. + // Set disablePortal to true when using Select inside a Dialog on Safari. + // See: https://github.com/chakra-ui/ark/issues/1782 + disablePortal = false, class: className, ...restProps -} = defineProps() +} = defineProps< + SelectContentProps & { + class?: HTMLAttributes['class'] + disablePortal?: boolean + } +>() const emits = defineEmits() const delegatedProps = computed(() => ({ @@ -34,7 +43,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)