fix null event error in firefox
This commit is contained in:
parent
efa1bc5ef8
commit
f9ec2c3759
@ -98,7 +98,7 @@ class Dropdown extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
handleWindowClick() {
|
||||
handleWindowClick(event) {
|
||||
const triggerElement = findDOMNode(this.trigger);
|
||||
const contentElement = findDOMNode(this.content);
|
||||
const closeDropdown = this.props.isOpen && this.state.isOpen && triggerElement.contains(event.target);
|
||||
|
Loading…
Reference in New Issue
Block a user