Skip to content

Commit

Permalink
Merge pull request #75 from wri/fix/header-toggle
Browse files Browse the repository at this point in the history
fix other tools toggle
  • Loading branch information
wri7tno committed Jul 28, 2023
2 parents 62bbe05 + 14e935f commit 25f7c6d
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 25f7c6d

Please sign in to comment.