Explorar el Código

Merge pull request #5583 from burdittw/push-menu-passive-mode-fix

Update push-menu.ts
Daniel hace 10 meses
padre
commit
d4e2adfdb1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/ts/push-menu.ts

+ 1 - 1
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