How to use the body-scroll-lock.clearAllBodyScrollLocks.mockReset function in body-scroll-lock

To help you get started, we’ve selected a few body-scroll-lock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qantasairways / runway / src / shared / ButtonWithDialog / __test__ / Dialog.spec.js View on Github external
afterEach(() => {
    disableBodyScroll.mockReset();
    enableBodyScroll.mockReset();
    clearAllBodyScrollLocks.mockReset();
  });

body-scroll-lock

Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)

MIT
Latest version published 3 years ago

Package Health Score

69 / 100
Full package analysis