react-component / select

React Select
https://select.react-component.now.sh/
MIT License
897 stars 454 forks source link

Bug: Previous select is not closed when new one is opened via expand icon #638

Open kot-pilot opened 3 years ago

kot-pilot commented 3 years ago

After researching source code I've found that select is using 'onGlobalMouseDown' callback for tracking outside 'mousedown' event to handle situations where outer click occured or another select instance is opened - then it closes all selects, which were opened before. Unfortunately it doesn't work for situation with opening next select through clicking on 'expandIcon' , because 'rc-select' component inner implementation is calling event.preventDefault which makes impossible to catch this and close previously opened select instances.

PizzaPete commented 1 year ago

We're running into the same problem.