finish mobile menu and scroll event
This commit is contained in:
@@ -20,6 +20,10 @@ export class Header {
|
||||
this.isMenuOpen = false;
|
||||
}
|
||||
|
||||
scrollTo(id: string): void {
|
||||
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
|
||||
@HostListener('document:click', ['$event'])
|
||||
onDocumentClick(event: MouseEvent): void {
|
||||
if (!this.isMenuOpen) {
|
||||
|
||||
Reference in New Issue
Block a user