select icon indicating copy to clipboard operation
select copied to clipboard

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

Open kot-pilot opened this issue 4 years ago • 1 comments

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.

kot-pilot avatar Jun 22 '21 06:06 kot-pilot

We're running into the same problem.

PizzaPete avatar Dec 12 '22 14:12 PizzaPete