You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(swiper): add passive: false to eventListener to avoid bug when $container is document.body
BUG: when $container is document.body, chrome version higher than 56 will display a warning, since the default value of passive is true on document. see https://www.chromestatus.com/features/5093566007214080
FIX: add {passive: false} to add/removeEventListener, since Typescript’s default signature of `option` in addEventListener is boolean, and in removeEventListener is bool | targetEventOption, add static cast to any to avoid this bug.
microsoft/TypeScript#9548microsoft/TypeScript-DOM-lib-generator#224
TODO: may need remove this cast in later Typescript version
0 commit comments