removed serachBarRef
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user