Skip to content

Two 'selects' can be open by clicking on an arrow #2182

@an4ger

Description

@an4ger

I have 2 selects on one page. Click on first select arrow and than click on second select arrow. Both selects stay opened.

react-select-2opened

Problem is located in: f6920de

Return statement was removed and event not bubble to main handleMouseDown

 		if (!this.state.isOpen) {
-			return;
+			this.setState({
+				isOpen: true,
+			});
 		}
 		// prevent default event handlers
 		event.stopPropagation();
 		event.preventDefault();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions