Skip to content

Commit

Permalink
Update push-menu.ts
Browse files Browse the repository at this point in the history
this fixes the error message about the push-menu being a scroll-blocking event by adding passive mode to the event handler
  • Loading branch information
burdittw committed May 24, 2024
1 parent 1bcb775 commit 601b1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/push-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601b1bd

Please sign in to comment.