Socket
Socket
Sign inDemoInstall

focus-trap

Package Overview
Dependencies
Maintainers
3
Versions
81
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

2.4.3

Diff

Changelog

Source

2.4.3

  • Fixed: TypeScript signature for activate function.
davidtheclark
published 2.4.2 •

Changelog

Source

2.4.2

  • Added: TypeScript declaration file.
davidtheclark
published 2.4.1 •

davidtheclark
published 2.4.0 •

davidtheclark
published 2.3.1 •

Changelog

Source

2.3.1

  • Fixed: Activation does not re-focus already-focused node.
  • Fixed: Tabbing works as expected when initially focused Node has a negative tabindex and is in the middle of other tabbable elements.
davidtheclark
published 2.3.0 •

Changelog

Source

2.3.0

  • Added: initialFocus and fallbackFocus options can take functions that return DOM nodes.
  • Fixed: pause and unpause cannot accidentally add extra event listeners.
davidtheclark
published 2.2.0 •

Changelog

Source

2.2.0

  • Added/fixed, depending on your perspective: If focus is already inside the focus trap when it is activated, leave focus where it is instead of forcing it to the first tabbable node or initialFocus.
davidtheclark
published 2.1.0 •

Changelog

Source

2.1.0

  • Added: fallbackFocus option.
davidtheclark
published 2.0.2 •

Changelog

Source

2.0.2

  • Fixed: clickOutsideDeactivates no longer triggers deactivation when you click inside the trap.
davidtheclark
published 2.0.1 •

Changelog

Source

2.0.1

  • Fix bug when activating multiple focus traps.
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