Browse Source

Update push-menu.ts

this fixes the error message about the push-menu being a scroll-blocking event by adding passive mode to the event handler
pull/5583/head
Walter Burditt 6 months ago
parent
commit
601b1bd603
  1. 2
      src/ts/push-menu.ts

2
src/ts/push-menu.ts

@ -156,7 +156,7 @@ onDOMContentLoaded(() => {
const target = event.currentTarget as HTMLElement
const data = new PushMenu(target, Defaults)
data.collapse()
})
}, { passive: true })
sidebarOverlay.addEventListener('click', event => {
event.preventDefault()
const target = event.currentTarget as HTMLElement

Loading…
Cancel
Save