Skip to content

Commit

Permalink
πŸ›(react) fix select mono searchable menu togglee
Browse files Browse the repository at this point in the history
Prevents options menu to open again at click on arrow down button
when select mono searchable uses options fetching
  • Loading branch information
daproclaima committed Jun 27, 2024
1 parent a1515a2 commit 81a13de
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ export const SelectMonoSearchable = forwardRef<SelectHandle, SubProps>(
// when the menu is open, it will close and reopen immediately.
if (!downshiftReturn.isOpen) {
downshiftReturn.openMenu();
} else if (isAsyncOptionsFetching) {
downshiftReturn.closeMenu();
}
},
},
Expand Down

0 comments on commit 81a13de

Please sign in to comment.