npm focus-trap 6.2.2

latest releases: 7.5.4, 7.5.3, 7.5.2...
3 years ago

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.

Don't miss a new focus-trap release

NewReleases is sending notifications on new releases.