Update custom event name

file-group-page
bat 3 years ago
parent e9525ab15c
commit d9532864c1

@ -35,7 +35,7 @@ export class NavMenu extends HTMLElement {
this.shadowRoot.addEventListener('click', e => { this.shadowRoot.addEventListener('click', e => {
if (e.target.classList.contains('page')) { if (e.target.classList.contains('page')) {
this.dispatchEvent(new CustomEvent( this.dispatchEvent(new CustomEvent(
'close', {bubbles: true} 'close-menu', {bubbles: true}
)) ))
} }
}) })

Loading…
Cancel
Save