Skip to content

fix(deps): update dependency focus-trap to ^8.2.5 - #2955

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/focus-trap-8.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/focus-trap-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
focus-trap ^8.2.4 → ^8.2.5 age confidence

Release Notes

focus-trap/focus-trap (focus-trap)

v8.2.5

Compare Source

Patch Changes
  • 24a9714: Fix several issues with a trap's activation being cancelled, superseded, or interrupted before it completes:

    • Deactivating a trap while its checkCanFocusTrap() promise is pending no longer completes the activation (adding listeners, isolating subtrees, and calling onPostActivate()) once the promise settles.
    • Reactivating a trap before a previous activation's checkCanFocusTrap() promise settles no longer lets that stale activation finish against the new one.
    • Deactivating a trap while its initial focus is delayed (delayInitialFocus: true) no longer completes the activation.
    • Deactivating a trap from a focus handler on its initial focus node (delayInitialFocus: false) no longer leaves document listeners behind that keep intercepting focus, clicks, and keys.
    • Pausing a trap during activation (e.g. in onActivate()) or while it sets its initial focus no longer adds listeners to the paused trap or isolates other content.
    • Cancelling a pending activation now restores the previous trap's subtree isolation instead of leaving it removed, and no longer removes inert or aria-hidden attributes the page had already set on adjacent elements.
    • A trap that resumes while another trap's activation is still pending no longer re-isolates its subtrees, which hid the pending trap's container and, with inert, made its activation fail for lack of tabbable nodes.
  • 9fe8f29: Update tabbable dependency to ^6.5.2

  • 3f6d5f6: Fix a trap deactivated (even if then reactivated) or paused again while unpausing (e.g. by its onUnpause() handler, or a focus handler on its initial focus node) still finishing the cancelled unpause, isolating its subtrees and calling onPostUnpause() afterward, which could leave adjacent elements inert or aria-hidden with no active trap.


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • "before 5am every weekday,every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions
github-actions Bot enabled auto-merge November 21, 2026 03:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants