focus-trap

Trap focus within a DOM node.

MIT License

Downloads
7M
Stars
1.3K
Committers
38

Bot releases are visible (Hide)

focus-trap - v7.5.4 Latest Release

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 680f6e8: Fix issue with not being able to cycle back to the start from the last element if there is a focusable web component inside the focus-trap ((#1068)[https://github.com/focus-trap/focus-trap/issues/1068])
focus-trap - v7.5.3

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 203b322: Fix missing typings for initialFocus option (#1060)
focus-trap - v7.5.2

Published by github-actions[bot] over 1 year ago

Patch Changes

  • b73eb02: Remove references to Array.prototype.findLast() not well supported in Safari (#996)
focus-trap - v7.5.1

Published by github-actions[bot] over 1 year ago

Patch Changes

  • d9e2546: Fix possible exception in new Tabbable.getTabIndex() when initializing trap
focus-trap - v7.5.0

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 5e2f913: Adds support for nodes with a positive tabindex in single-container traps only (#375)
focus-trap - v7.4.3

Published by github-actions[bot] over 1 year ago

Patch Changes

focus-trap - v7.4.2

Published by github-actions[bot] over 1 year ago

Patch Changes

  • db62ce3: Clicking on open shadowDOM components within a focus trap's container when clickOutsideDeactivates=true should not deactivate the focus trap. (#959)
focus-trap - v7.4.1

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 4f720ff: Bump tabbable to v6.1.2 for nwsapi patch
focus-trap - v7.4.0

Published by github-actions[bot] over 1 year ago

Minor Changes

  • da97007: Added new onPost/Pause and onPost/Unpause hooks when un/pausing a trap (also called when auto-un/paused as a result of de/activating a second trap while another is currently active). (focus-trap-react#948)
focus-trap - v7.3.1

Published by github-actions[bot] over 1 year ago

Patch Changes

  • a00cfa5: Bump tabbable to v6.1.1 for JSDom fixes
focus-trap - v7.3.0

Published by github-actions[bot] over 1 year ago

Minor Changes

  • ae7129d: Bump tabbable to v6.1.0 adding support for the new HTML inert attribute in browsers that support it (NOTE: FireFox does not support it at this time). Also fixes a bug. See tabbable CHANGELOG for more info.

Patch Changes

  • a27ad58: Fix incorrect behavior of returnFocusOnDeactivate option when set to true (or defaulted to true) along with clickOutsideDeactivates=true and the outside click that deactivates is on a focusable node. Focus was remaining on that node instead of returning to the node focused just prior to activation. (#893)
focus-trap - v7.2.0

Published by github-actions[bot] almost 2 years ago

Minor Changes

  • b0482af: Add new isKeyForward() and isKeyBackward() options (#612)
focus-trap - v7.1.0

Published by github-actions[bot] almost 2 years ago

Minor Changes

  • 88cc9bc: Provide new trapStack option to make it possible to coordinate auto-activation/pausing between multiple focus-trap instances on the same page.

Patch Changes

  • 4f97b38: Bump tabbable to v6.0.1 for a bug fix. See tabbable's changelog for more details.
  • f13de76: Mention special Safari setting to enable normal DOM-based tab order in README. #783
focus-trap - v7.0.0

Published by github-actions[bot] about 2 years ago

Major Changes

  • 5b64423: Revised and clarified official browser support (still as broad and deep as reasonably possible).
  • 47f62ac: 🚨 Breaking: Tabbable dependency has been updated to v6.0.0 and contains a breaking change related to detached nodes with its default displayCheck setting. See tabbable's changelog for more information.
  • 5b64423: 🚨 Breaking: Dropped support of IE browsers, all versions.
    • IE11 was officially retired on June 15, 2022 (6 weeks ago). There are no longer any versions of IE that are still maintained or even supported by Microsoft.
focus-trap - v6.9.4

Published by github-actions[bot] over 2 years ago

Patch Changes

  • f68882e: Fix docs and typings to clarify that initialFocus, fallbackFocus, and setReturnFocus options can be functions that also return selector strings.
focus-trap - v6.9.3

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 8a8b1f1: Bump tabbable to v5.3.3 to pick up a small bug fix to web component (shadow DOM) support.
focus-trap - v6.9.2

Published by github-actions[bot] over 2 years ago

Patch Changes

  • ef0ce48: Handle unexpected param (true) passed as the value for the initialFocus, fallbackFocus, and setReturnFocus options: Ignore and perform default behavior.
focus-trap - v6.9.1

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 83262a7: Bumps tabbable to v5.3.2 to pick-up a fix to displayCheck=full (default) option behavior that caused issues with detached nodes.
focus-trap - v6.9.0

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 2a57e4b: Add new trap.active and trap.paused readonly state properties on the trap so that the trap's active/paused state can be queried.

Patch Changes

  • 8fd49df: Fixed bug where clickOutsideDeactivate handler would get called on the 'click' event even if the node clicked was in the trap. As with 'mousedown' and 'touchstart' events where this option is also used, the handler should only get called if the target node is outside the trap.
  • c32c60a: Fixed: onDeactivate, onPostDeactivate, and checkCanReturnFocus options originally given to createFocusTrap() were not being used by default when calling trap.deactivate({...}) with an option set even if that option set didn't specify any overrides of these options.
focus-trap - v6.8.1

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 7c86111:
    • Bump tabbable to ^5.3.1 (fixing previous update which was incorrectly set to 5.3.0).
    • Fix tabbableOptions not being used in all internal uses of tabbable APIs.
    • Expose displayCheck option in tabbableOptions typings and pass it through to tabbable APIs.
    • Add info to README about testing traps in JSDom (which is not officially supported).