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 returnfalse
to leave focus where it is at the time of deactivation. (#485)
Patch Changes
- 60162eb: Fix bug where
KeyboardEvent
was not being passed toescapeDeactivates
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 returningfalse
as documented (#490)