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.

openOnFocus={false} doesn't prevent opening when focused

See original GitHub issue

Hi, 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 onFocus 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:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
adelavinacommented, Mar 26, 2017

Waiting for a rc with this too. 😦 Thanks.

2reactions
lauterrycommented, Mar 1, 2017

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

Read more comments on GitHub >

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

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