Web: Components: ComboBox: Fixed toggleAction on side click

This commit is contained in:
Ilya Oleshko 2019-12-27 15:22:39 +03:00
parent 10e417f3e1
commit 3e1bc96064

View File

@ -39,6 +39,7 @@ class ComboBox extends React.Component {
handleClick = (e) => {
if (this.state.isOpen && !this.ref.current.contains(e.target)) {
this.toggle(false);
this.props.toggleAction && this.props.toggleAction(e, true);
}
}