diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-05-07 17:06:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-07 07:06:49 -0700 |
commit | 0edd3bd3b4445275ea3f9ddfc5f91ad4950acdd8 (patch) | |
tree | 8bd09f7f1d2f48010c93dc84f580fdf4bbe94878 | |
parent | e01b24702e6e4ef2e5c77de726f4a10f418eef2e (diff) | |
download | voidsky-0edd3bd3b4445275ea3f9ddfc5f91ad4950acdd8.tar.zst |
fix select triggers on ios safari (#8343)
-rw-r--r-- | src/components/Select/index.web.tsx | 1 | ||||
-rw-r--r-- | src/components/Select/types.ts | 4 |
2 files changed, 4 insertions, 1 deletions
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 = { |