Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

focus-trap

Package Overview
Dependencies
Maintainers
0
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap - npm Package Versions

1
9

6.4.0

Diff

Changelog

Source

6.4.0

Minor Changes

  • 21c82ce: Bump tabbable from 5.1.6 to 5.2.0. There should be no changes in behavior as a result of this upgrade as focus-trap does not currently leverage the new displayCheck option.

Patch Changes

  • 1baf62e: Fix focus trapped on initial focus container with tabindex=-1 when pressing shift+tab (#363)
stefcameron
published 6.3.0 •

Changelog

Source

6.3.0

Minor Changes

  • a882d62: clickOutsideDeactivates can now also be a function that returns a boolean, similar to allowOutsideClick. The function receives the MouseEvent that triggered the click. (#289)

Patch Changes

  • 4d67dee: Fix a focus escape when pressing TAB after hiding element with focus (#281)
  • ca32014: Bump tabbable from 5.1.4 to 5.1.5
stefcameron
published 6.2.3 •

Changelog

Source

6.2.3

Patch Changes

  • 036a72e: Fix crash in IE due to use of Array.findIndex() not supported in that browser (#257)
stefcameron
published 6.2.2 •

Changelog

Source

6.2.2

Patch Changes

  • fd3f2d1: Fix a bug where a multi-container trap would cease to work if all tabbable nodes were removed from one of the containers (fixes #223). As a result, an error is now thrown if the trap is left in a state where none of its containers contain any tabbable nodes (unless a fallbackFocus node has been configured in the trap's options). Also, the most-recently-focused node is more reliably tracked now, should focus somehow escape the trap and be brought back in by the trap, resulting in the truly most-recently-focused node to regain focus if that ever happens.
stefcameron
published 6.2.1 •

Changelog

Source

6.2.1

Patch Changes

  • f0c2aff: Bump tabbable to 5.1.4 for bug fix.
  • 2ba512b:
    • Refactored code to use function declarations instead of hoisted functions (this should have no bearing on functionality in the build output included in ./dist.
    • Fixed bugs where trap.activate() and trap.deactivate() would not always return the trap (now they do in all circumstances).
  • d26d2e1: Refactoring to use const/let, and simplify a few lines. This does NOT impact the build output published in ./dist, however, and hence does not impact browser support.
stefcameron
published 6.2.0 •

Changelog

Source

6.2.0

Minor Changes

  • 2267d17: Adding support for multiple elements to be passed in #217
stefcameron
published 6.1.4 •

Changelog

Source

6.1.4

Patch Changes

  • 38b6b98: Update tabbable to 5.1.3 to get bug fixes related to detail and summary elements.
stefcameron
published 6.1.3 •

Changelog

Source

6.1.3

Patch Changes

  • 6a39217: Close the gap with #172 and bump tabbable to 5.1.2 which has a similar fix.
  • 756c79d: Fix #172 (again): Transpile ESM bundle down to the same browser target used for the CJS and UMD bundles. ESM is just the module system, not the browser target.
stefcameron
published 6.1.2 •

Changelog

Source

6.1.2

Patch Changes

  • 00674dd: Fix #172: Transpile non-minified bundles so they are compatible with IE11.
  • 679009b: Update tabbable dependency to 5.1.1 to get transpiled non-minified bundles.
stefcameron
published 6.1.1 •

Changelog

Source

6.1.1

Patch Changes

  • fe2b0ad: Fixed #103: returnFocusOnDeactivate is now respected on auto-deactivation with clickOutsideDeactivates=true.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc