question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:open
  • Created 3 years ago
  • Reactions:4
  • Comments:24 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Apr 10, 2021

@RiyaNegi Correct

1reaction
RiyaNegicommented, Apr 9, 2021

@oliviertassinari Hey mind if i pick this issue up?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found