Socket
Socket
Sign inDemoInstall

focus-trap-react

Package Overview
Dependencies
5
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous124567Next

8.11.0

Diff

Changelog

Source

8.11.0

Minor Changes

  • 7495680: Bump focus-trap to v6.9.0 to get bug fixes and new features to help fix some bugs.

Patch Changes

  • 7495680: Fix onDeactivate, onPostDeactivate, and checkCanReturnFocus options not being called consistently on deactivation.
  • 7495680: Fix focus not being allowed to remain on outside node post-deactivation when clickOutsideDeactivates is true or returns true.
stefcameron
published 8.10.0 •

Changelog

Source

8.10.0

Minor Changes

  • 659d44e: Bumps focus-trap to v6.8.1. The big new feature is opt-in Shadow DOM support in focus-trap (in tabbable), and new tabbable options exposed in a new focusTrapOptions.tabbableOptions configuration option.
    • ⚠️ This will likely break your tests if you're using JSDom (e.g. with Jest). See testing in JSDom for more info.
stefcameron
published 8.9.2 •

Changelog

Source

8.9.2

Patch Changes

  • 83e283c: Update focus-trap to v6.7.3 for bug fix related to elements with a negative tabindex.
stefcameron
published 8.9.1 •

Changelog

Source

8.9.1

Patch Changes

  • 3eb9421: Bump focus-trap to v6.7.2 for bug fix.
stefcameron
published 8.9.0 •

Changelog

Source

8.9.0

Minor Changes

  • 83097a5: Delay trap creation until it should be active. This is a change in behavior, however it should not break existing behavior. The delay now allows you to set active=false until you have the focusTrapOptions set correctly. #539

Patch Changes

  • 16d1ae1: Fix bug where global document was being accessed instead of first checking for focusTrapOptions.document option. #539
stefcameron
published 8.8.2 •

Changelog

Source

8.8.2

Patch Changes

  • 08a9449: Use preventScroll option on deactivation if returning focus.
stefcameron
published 8.8.1 •

Changelog

Source

8.8.1

Patch Changes

  • a2806a0: Fix SSR issues when accessing document object (#482)
stefcameron
published 8.8.0 •

Changelog

Source

8.8.0

Minor Changes

  • c8e46c2: Support new document option introduced in focus-trap v6.7.0 (#460)
  • 5ee587c: Bump focus-trap dependency to v6.7.1
stefcameron
published 8.7.1 •

Changelog

Source

8.7.1

Patch Changes

  • 111a27f: Update focus-trap to v6.6.1, to get tabbable at v5.2.1, to get bug fix for disabled fieldsets.
stefcameron
published 8.7.0 •

Changelog

Source

8.7.0

Minor Changes

  • 7fbe8ca: Update to support new features in focus-trap@6.6.0 including initialFocus which can now be false to prevent initial focus, and escapeDeactivates which can now alternately be a function that returns a boolean instead of a straight boolean.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc