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.

Click outside element not working

See original GitHub issue

With option searchable={false} click outside react-select element doesnt close itself. Is this intended behavior?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:8
  • Comments:9

github_iconTop GitHub Comments

1reaction
parthsrcommented, Jul 17, 2018

Why is this bug unconfirmed? It can be easily reproduced by passing searchable={false} as props. When clicked outside the react-select, the dropdown does not close.

0reactions
jossmaccommented, Mar 17, 2020

Version 1 of react-select is no longer supported.

In the best interest of the community we’ve decided to spend the time we have available on the latest version.

We apologise for any inconvenience.

Please see:

  1. v1 to v2 upgrade guide
  2. v1 documentation and examples
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I detect a click outside an element? - Stack Overflow
The first is that the link in the dialog isn't clickable. Attempting to click on it or tab to it will lead to...
Read more >
How to Detect a Click Outside an Element - W3docs
One of the most common patterns used in JavaScript is detecting a click outside an element. You can apply it for closing a...
Read more >
Detect clicks outside of an element - DOM-Tricks
To detect a click that occurs outside of an element, we add a click event listener to the entire document and then determine...
Read more >
Creating An Outside Focus And Click Handler React Component
In this article, we'll look at how to create an outside focus and click handler with React. We will recreate an open source...
Read more >
How to Detect a Click Outside of an Element with jQuery
Answer: Use the event.target Property ... You can use the event.target property to detect a click outside of an element such as dropdown...
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