[Autocomplete] Add equivalent to openOnFocus for `click` events
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
openOnFocus does not affect what happens when an out-of-focus input is clicked. In the comments of #20286, it was argued that this is by design. As such, I hereby request an equivalent (suggested: disableOpenOnClick
) prop that disables opening the suggestions on click.
Motivation 🔦
I had to add this to the embedded TextField
[...]
onMouseDownCapture={ (e) => e.stopPropagation()}
[...]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:24 (23 by maintainers)
Top Results From Across the Web
[Autocomplete] Add equivalent to openOnFocus for `click` events
I have searched the issues of this repository and believe that this is not a duplicate. Summary openOnFocus does not affect what happens ......
Read more >react material ui autocomplete element focus onclick
You should save a reference to the TextField component, and use this ref to focus once another element is clicked (once some event...
Read more >React Autocomplete component - Material UI - MUI
The autocomplete is a normal text input enhanced by a panel of suggested options. The widget is useful for setting the value of...
Read more >Including multiple result types | Autocomplete - Algolia
Learn how to show different types of results in one autocomplete.
Read more >Autocomplete - Buefy
You can add your custom header to the autocomplete. ... select-on-click-outside, Trigger the @select event for the first pre-selected option when clicking ......
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
@RiyaNegi Correct
@oliviertassinari Hey mind if i pick this issue up?