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

This commit is contained in:
Claire authored and GitHub committed 2024-08-01 20:50:36 +00:00
1 parent da5b45a573
commit afdfeb5856
1 file changed
+1
@@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
if (this.node && !this.node.contains(e.target)) {
this.props.onClose();
e.stopPropagation();
e.preventDefault();
}
};