npm focus-trap 6.7.0
v6.7.0

latest releases: 7.6.0, 7.5.4, 7.5.3...
2 years ago

Minor Changes

  • 893dd2c: Add document option to support focus traps inside <iframe> elements (#97)
  • 244f0c1: Extend the setReturnFocus option to receive a reference to the element that had focus prior to the trap being activated when a function is specified. Additionally, the function can now return false to leave focus where it is at the time of deactivation. (#485)

Patch Changes

  • 60162eb: Fix bug where KeyboardEvent was not being passed to escapeDeactivates option when it's a function (#498)
  • 7b6abfa: Fix how focus-trap determines the event's target, which was preventing traps inside open shadow DOMs from working properly (#496)
  • 14b0ee8: Fix initialFocus option not supporting function returning false as documented (#490)

Don't miss a new focus-trap release

NewReleases is sending notifications on new releases.