Snyk has created this PR to upgrade focus-trap from 6.3.0 to 6.9.4.
:information_source: 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.
The recommended version is 19 versions ahead of your current version.
The recommended version was released 3 months ago, on 2022-06-09.
f68882e: Fix docs and typings to clarify that initialFocus, fallbackFocus, and setReturnFocus options can be functions that also return selector strings.
ef0ce48: Handle unexpected param (true) passed as the value for the initialFocus, fallbackFocus, and setReturnFocus options: Ignore and perform default behavior.
2a57e4b: Add new trap.active and trap.paused readonly state properties on the trap so that the trap's active/paused state can be queried.
Patch Changes
8fd49df: Fixed bug where clickOutsideDeactivate handler would get called on the 'click' event even if the node clicked was in the trap. As with 'mousedown' and 'touchstart' events where this option is also used, the handler should only get called if the target node is outside the trap.
c32c60a: Fixed: onDeactivate, onPostDeactivate, and checkCanReturnFocus options originally given to createFocusTrap() were not being used by default when calling trap.deactivate({...}) with an option set even if that option set didn't specify any overrides of these options.
21458c9: Bumps tabbable to v5.3.0 and includes all changes from the past v6.8.0 beta releases. The big new feature is opt-in Shadow DOM support in tabbable, and a new getShadowRoot tabbable option exposed in a new tabbableOptions focus-trap config option.
ab20d3d: Fix issue with focusing negative tabindex node and then tabbing away when this node is not the last node in the trap's container ((#611)[https://github.com//issues/611])
Snyk has created this PR to upgrade focus-trap from 6.3.0 to 6.9.4.
:information_source: 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
Patch Changes
Patch Changes
Patch Changes
initialFocus
,fallbackFocus
, andsetReturnFocus
options: Ignore and perform default behavior.Patch Changes
displayCheck=full
(default) option behavior that caused issues with detached nodes.Minor Changes
trap.active
andtrap.paused
readonly state properties on the trap so that the trap's active/paused state can be queried.Patch Changes
clickOutsideDeactivate
handler would get called on the 'click' event even if the node clicked was in the trap. As with 'mousedown' and 'touchstart' events where this option is also used, the handler should only get called if the target node is outside the trap.trap.deactivate({...})
with an option set even if that option set didn't specify any overrides of these options.Patch Changes
^5.3.1
(fixing previous update which was incorrectly set to5.3.0
).tabbableOptions
not being used in all internal uses of tabbable APIs.displayCheck
option intabbableOptions
typings and pass it through to tabbable APIs.Minor Changes
getShadowRoot
tabbable option exposed in a newtabbableOptions
focus-trap config option.6.8.0-beta.1
6.8.0-beta.0
Patch Changes
Commit messages
Package name: focus-trap
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