Fix click event handling when clicking outside of an open dropdown menu (#31251)
This commit is contained in:
parent
0a345ad5e1
commit
a8039dda13
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ class DropdownMenu extends PureComponent {
|
|||
if (this.node && !this.node.contains(e.target)) {
|
||||
this.props.onClose();
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue