fix undefined dropdown on user logout
This commit is contained in:
parent
51de2c7ff3
commit
56f0876184
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ export class MenuComponent implements OnInit {
|
|||
|
||||
// Close dropdown when window scroll to avoid dropdown quick jump for re-position
|
||||
const onWindowScroll = () => {
|
||||
this.dropdown.close()
|
||||
this.dropdown?.close()
|
||||
window.removeEventListener('scroll', onWindowScroll)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue