Fix click event handling when clicking outside of an open dropdown menu (#31251)

pull/31248/head
Claire 7 months ago committed by GitHub
parent da5b45a573
commit afdfeb5856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
if (this.node && !this.node.contains(e.target)) {
this.props.onClose();
e.stopPropagation();
e.preventDefault();
}
};

Loading…
Cancel
Save