openOnFocus={false} doesn't prevent opening when focused
See original GitHub issueHi, I am trying to prevent the menu from opening on click (the component is styled as a user picker this behavior needs to be avoided) but it doesn’t seem to work. https://plnkr.co/edit/GqaFR7?p=preview
Looking at the code, setting false seems to have no value and using onFocu
s doesn’t seem to have a way of preventing it either.
https://github.com/JedWatson/react-select/blob/5aef30df9dba378886f06684f7128216c0f340f6/src/Select.js#L417
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:9 (1 by maintainers)
Top Results From Across the Web
MUI Autocomplete: How to prevent open on focus, instead ...
onClose will get called by Material-UI whenever it thinks open should be set to false . The example below unconditionally calls setOpen(false) ...
Read more >Autocomplete API - Material UI - MUI
Name Type Default
options * array
renderInput * func
autoComplete bool false
Read more >Taginput | Buefy
A simple tag input field that can have autocomplete functionality. ... :data="filteredTags" autocomplete :allow-new="allowNew" :open-on-focus="openOnFocus" ...
Read more >Xamarin ComboBox Documentation | Editing - Telerik UI for ...
If the property is set to false when the control is focused the drop-down will no longer open. Text(string): Specifies the Text of...
Read more >Combobox - Reach UI
If you pass <ComboboxPopover portal={false} /> the popover will not render inside of a portal, but in the same order as the React...
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
Waiting for a rc with this too. 😦 Thanks.
Hi @JedWatson
When do you think you can publish a new release with this fix https://github.com/JedWatson/react-select/commit/ffa1f2d327460171e79def227696e6406b400eeb please ?
Best regards