fix null event error in firefox

This commit is contained in:
KDSBrowne 2018-11-12 16:45:37 +00:00
parent efa1bc5ef8
commit f9ec2c3759

View File

@ -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);