[v2] with openMenuOnClick: false and openMenuOnFocus: false, menu still toggles on click
See original GitHub issuecontinuing to stuggle with the upgrade, and seeing this.
We’re using react-select to show results for typeahead search, so I only ever want the menu to be showing when there are results to list. I tried setting both openMenuOnClick
and openMenuOnFocus
to false, but the menu continues to come up (with no results) when clicking inside of the input.
I expect the menu to never, ever show up when the user clicks in the input, or any parts of the input when these settings are set to false.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:7
Top Results From Across the Web
React-Select how to keep default behavior of menu open ...
i've tried to set menuIsOpen={true} after button click but it ruins the original focus blur behavior the menu is no longer closing on...
Read more >API - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax ... Close the select menu when the user selects...
Read more >react-select-fixed-v2/HISTORY.md - UNPKG
The CDN for react-select-fixed-v2. ... fixed select menu being opened on click, when openMenuOnClick is false. Thanks [caleb](https://github.com/caleb) and ...
Read more >https://raw.githubusercontent.com/Kashkovsky/react...
React-Select ## v2.2.0 / 2018-12-28 ### Bug Fixes ... issues opening the menu correctly for multiselect when `autosize={false}` * fixed; removed `event.
Read more >https://elicejus.lt/wp-content/plugins/presto-play...
node_modules/react-select/dist/stateManager-845a3300.esm.js","webpack:///. ... options';},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I copied the below function from ReactSelect’s souce code and modified (1) and (2) below. Then using ref I replace the function with my modified one.
@tpict
Here’s the PR using @Korkemoms’s fix: #3334