Skip to content

handleInputBlur requires additional check #690

@pavel-kudishin

Description

@pavel-kudishin

[email protected].
handleInputBlur function must check if this.state.isOpen before using this.refs.menu this way:
if (this.state.isOpen){
var menuDOM = ReactDOM.findDOMNode(this.refs.menu);
if (document.activeElement.isEqualNode(menuDOM)) {
return;
}
}
because if this.state.isOpen == false then this.refs.menu is null and in IE 11 you get unhandled exception 0x80004003 invalid pointer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions