From 0edd3bd3b4445275ea3f9ddfc5f91ad4950acdd8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 7 May 2025 17:06:49 +0300 Subject: fix select triggers on ios safari (#8343) --- src/components/Select/index.web.tsx | 1 + src/components/Select/types.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/Select/index.web.tsx b/src/components/Select/index.web.tsx index e9d26631c..0e6fa85ca 100644 --- a/src/components/Select/index.web.tsx +++ b/src/components/Select/index.web.tsx @@ -73,6 +73,7 @@ export function Trigger({children, label}: TriggerProps) { }, props: { ...props, + onPress: props.onClick, onFocus: onFocus, onBlur: onBlur, onMouseEnter, diff --git a/src/components/Select/types.ts b/src/components/Select/types.ts index 5c1b80a3b..661621a60 100644 --- a/src/components/Select/types.ts +++ b/src/components/Select/types.ts @@ -53,7 +53,9 @@ export type RadixPassThroughTriggerProps = { ['aria-controls']?: string ['aria-haspopup']?: boolean ['aria-expanded']?: AccessibilityProps['aria-expanded'] - onPress: () => void + onClick: () => void + onPointerDown: () => void + onKeyDown: () => void } export type TriggerProps = { -- cgit 1.4.1