mirror of https://github.com/Chocobozzz/PeerTube
fix undefined dropdown on user logout
parent
51de2c7ff3
commit
56f0876184
|
@ -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 New Issue