Skip to content

Commit

Permalink
feat: close options menu when selecting an option on single selection…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
g-saracca committed Jul 18, 2024
1 parent e254b3b commit 6153568
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export const SelectAdvanced = forwardRef(
}

return (
<DropdownBS autoClose="outside" className={isInvalid ? 'is-invalid' : ''}>
<DropdownBS
autoClose={isMultiple ? 'outside' : true}
className={isInvalid ? 'is-invalid' : ''}>
<SelectAdvancedToggle
isMultiple={Boolean(isMultiple)}
selected={selected}
Expand Down
Loading

0 comments on commit 6153568

Please sign in to comment.