removed serachBarRef

This commit is contained in:
Noor Fakhry
2021-09-14 21:45:12 +02:00
parent 3d50ac03ad
commit 67710b3d18

View File

@ -43,9 +43,7 @@ export class Header extends React.Component<
if ( if (
this.state.displayMenu && this.state.displayMenu &&
this.menuButtonRef.current && this.menuButtonRef.current &&
!this.menuButtonRef.current.contains(event.target) && !this.menuButtonRef.current.contains(event.target)
this.searchBarRef.current &&
!this.searchBarRef.current.contains(event.target)
) { ) {
this.toggleDisplayMenu(); this.toggleDisplayMenu();
} }