Skip to content

Commit

Permalink
fix(Select): close popup when click on select button (Safari) (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Aug 30, 2024
1 parent b6c84ad commit 3f5adc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export const Select = React.forwardRef<HTMLButtonElement, SelectProps>(function
className={selectBlock(mods, className)}
{...focusWithinProps}
style={inlineStyles}
tabIndex={-1}
>
<SelectControl
toggleOpen={toggleOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const SelectControl = React.forwardRef<HTMLButtonElement, ControlProps>((
type="button"
data-qa={qa}
title={title}
tabIndex={0}
>
{label && <span className={selectControlBlock('label')}>{label}</span>}
{showPlaceholder && (
Expand Down

0 comments on commit 3f5adc5

Please sign in to comment.