1
0
Fork 0

fix undefined dropdown on user logout

This commit is contained in:
Rigel Kent 2021-01-14 15:35:03 +01:00
parent 51de2c7ff3
commit 56f0876184
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F

View file

@ -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)
}