Skip to content

Commit

Permalink
click outside to refocus input
Browse files Browse the repository at this point in the history
  • Loading branch information
joduplessis committed Jun 14, 2024
1 parent 7bff112 commit aed210c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const Select = (props: SelectProps) => {
const handleClickOutside = (e) => {
if (containerRef.current) {
if (!containerRef.current?.contains(e.target)) {
if (visible) dismiss(false)
if (visible) dismiss()
}
}
}
Expand Down

0 comments on commit aed210c

Please sign in to comment.