JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.42k stars 4.1k forks source link

Clicking outside of the menu does not close a controlled menu #5916

Open murphpdx opened 3 weeks ago

murphpdx commented 3 weeks ago

I'm using this example to use a controlled select component. https://github.com/JedWatson/react-select/blob/master/docs/examples/ControlledMenu.tsx

The menu does not close when clicking outside of the menu. I can see the browser that the document.activeElement is just the body of the page. I've tried setting focus to the select component on menu open so that I can hook into the onBlur but the body of the page is still focused.