Update custom event name

file-group-page
bat 3 years ago
parent d9532864c1
commit 5ae07be15d

@ -45,7 +45,7 @@ export class PageMenu extends HTMLElement {
this.shadowRoot.appendChild(btn) this.shadowRoot.appendChild(btn)
btn.addEventListener('click', () => { btn.addEventListener('click', () => {
this.dispatchEvent(new CustomEvent( this.dispatchEvent(new CustomEvent(
'close', {bubbles: true} 'close-menu', {bubbles: true}
)) ))
handler() handler()
}) })

Loading…
Cancel
Save