[Snyk] Upgrade focus-trap from 6.3.0 to 6.7.1 #2166
+8
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade focus-trap from 6.3.0 to 6.7.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: focus-trap
-
6.7.1 - 2021-09-27
- 28a069f: Fix bug from #504 where it's no longer possible to create a trap without any options [#525]
-
6.7.0 - 2021-09-24
- 893dd2c: Add
- 244f0c1: Extend the
- 60162eb: Fix bug where
- 7b6abfa: Fix how focus-trap determines the event's target, which was preventing traps inside open shadow DOMs from working properly (#496)
- 14b0ee8: Fix
-
6.6.1 - 2021-08-14
- 24063d7: Update tabbable to v5.2.1 to get bug fix for disabled fieldsets.
-
6.6.0 - 2021-07-01
-
- Modals/dialogs
- On mobile devices where "tabbing" doesn't make sense without a connected Bluetooth keyboard
-
- e2294f0: Fix race condition when activating a second trap where initial focus in the second trap may be thwarted because pausing of first trap clears the
-
6.5.1 - 2021-06-18
- c38bf3f: onPostDeactivate should always be called even if returnFocus/OnDeactivate is disabled.
-
6.5.0 - 2021-06-07
- 278e77e: Adding 4 new configuration event options to improve support for animated dialogs and animated focus trap triggers:
- 8d11e15: Improve docs and types for most options, adding
-
6.4.0 - 2021-04-20
- 21c82ce: Bump tabbable from 5.1.6 to 5.2.0. There should be no changes in behavior as a result of this upgrade as
- 1baf62e: Fix focus trapped on initial focus container with tabindex=-1 when pressing shift+tab (#363)
-
6.3.0 - 2021-01-16
- a882d62:
- 4d67dee: Fix a focus escape when pressing TAB after hiding element with focus (#281)
- ca32014: Bump tabbable from 5.1.4 to 5.1.5
from focus-trap GitHub release notesPatch Changes
Minor Changes
documentoption to support focus traps inside<iframe>elements (#97)setReturnFocusoption 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 returnfalseto leave focus where it is at the time of deactivation. (#485)Patch Changes
KeyboardEventwas not being passed toescapeDeactivatesoption when it's a function (#498)initialFocusoption not supporting function returningfalseas documented (#490)Patch Changes
Minor Changes
281e66c: Add option to allow no initial focus when trap activates via
initialFocus: falseThere may be cases where we don't want to focus the first tabbable element when a focus trap activates.
Examples use-cases:
In addition, this change ensures that any element inside the trap manually focused outside of
focus-trapcode will be brought back in focus if focus is somehow found outside of the trap.Example usage:
When the trap activates, there will be no initially focused element inside the new trap.
75be463:
escapeDeactivatescan now be either a boolean (as before) or a function that takes an event and returns a boolean.Patch Changes
delayInitialFocustimer created for the second trap before during its activation sequence.Patch Changes
Minor Changes
checkCanFocusTrap(),onPostActivate(),checkCanReturnFocus(), andonPostDeactivate().Patch Changes
SVGElementas a supported type of "DOM node" since it supports thefocus()method, same asHTMLElement.Minor Changes
focus-trapdoes not currently leverage the newdisplayCheckoption.Patch Changes
Minor Changes
clickOutsideDeactivatescan now also be a function that returns aboolean, similar toallowOutsideClick. The function receives theMouseEventthat triggered the click. (#289)Patch Changes
Commit messages
Package name: focus-trap
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs