Skip to content

Commit

Permalink
fix other tools toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Jul 28, 2023
1 parent 62bbe05 commit 14e935f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,12 @@ class Header extends PureComponent {
{...this.state}
menuItems={navMain}
toggleShowSubmenu={() => {
this.setState({ showSubmenu: false });

if (
!this.state.clickOutside ||
!this.props.fullScreen
) {
if (!clickOutside) {
this.setState({ showSubmenu: true });
} else if (!clickOutside || fullScreen) {
this.setState({ showSubmenu: false });
} else {
this.setState({ showSubmenu: false });
}
}}
/>
Expand Down

0 comments on commit 14e935f

Please sign in to comment.