Commit d7fed8fd authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Close drop-down menu after clicking on the option

parent 2db7b35d
......@@ -109,7 +109,7 @@ class MenuItem extends React.Component<IMenuItemProps, any> {
return (
<div
className={ `${classes.menuItem} ${this.state.open && classes.hover} ${ active && classes.active } ${ activeSub && classes.activeSub}` }
onMouseEnter={ this.openMenu } onMouseLeave={ this.closeMenu }
onMouseEnter={ this.openMenu } onMouseLeave={ this.closeMenu } onClick={ this.closeMenu }
>
<Link to={ to } className={ `${ classes.menuLink }` }>
<div className={ classes.linkContent }>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment