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

3.0.0

Diff

Changelog

Source

3.0.0

  • Breaking (kind of): Update Tabbable to detect more elements and be more careful with radio buttons (see Tabbable's changelog).
  • Breaking (kind of): If clickOutsideDeactivates and returnFocusOnDeactivate are both true, focus will be returned to the pre-trap element only if the clicked element is not focusable.
davidtheclark
published 2.4.6 •

Changelog

Source

2.4.6

  • Add slight delay before moving focus to the first element in the trap. This should prevent an occasional bug caused when the first element in the trap will close the trap if it picks up on the event that triggered the trap's opening.
davidtheclark
published 2.4.5 •

Changelog

Source

2.4.5

  • Fix "main" field in package.json.
davidtheclark
published 2.4.4 •

Changelog

Source

2.4.4

  • Publish UMD build so people can download it from unpkg.com.
davidtheclark
published 2.4.3 •

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.
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