Skip to content

Commit

Permalink
Fix react-select closing on select on mobile
Browse files Browse the repository at this point in the history
Looks like this is a bug in react-select. closeMenuOnSelect={false}
should do this. But adding blurInputOnSelect is the workaround I guess.

JedWatson/react-select#2771
  • Loading branch information
prendradjaja committed Sep 14, 2024
1 parent 6e724a0 commit 9c8e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/CreateHangoutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export function CreateHangoutPage() {
</Heading>
<CreatableSelect
closeMenuOnSelect={false}
blurInputOnSelect={false}
isMulti
defaultValue={[] as SelectOption[]}
value={friends}
Expand Down

0 comments on commit 9c8e03b

Please sign in to comment.