Skip to content

Commit

Permalink
Removes selection prop on select input on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
gfviegas authored Mar 1, 2023
1 parent ea50b56 commit d94580e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/primitives/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ const Select = (
'shadow',
'opacity',
]);

const isSafari = Platform.OS === 'web' && window.safari

const commonInput = (
<Input
Expand All @@ -172,6 +174,7 @@ const Select = (
isDisabled={isDisabled}
pointerEvents="none"
variant={variant}
selection={isSafari ? undefined : nonLayoutProps.selection}
/>
);

Expand Down

0 comments on commit d94580e

Please sign in to comment.