Skip to content

Commit

Permalink
Merge pull request #261 from tarun1081998/async-fetch-bug
Browse files Browse the repository at this point in the history
Fixed issue with selecting value async section after search
  • Loading branch information
tbleckert authored Sep 23, 2024
2 parents 2e72c89 + fa05fd3 commit 9f79540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function useSelect({
},
onBlur: (e) => {
setFocus(false);
setSearch('');
!option && setSearch('');
setHighlighted(-1);
onBlur(e);
},
Expand Down

0 comments on commit 9f79540

Please sign in to comment.