Skip to content

fix(deps): update dependency focus-trap to v8#2222

Merged
mejo- merged 1 commit intomainfrom
renovate/focus-trap-8.x
Feb 15, 2026
Merged

fix(deps): update dependency focus-trap to v8#2222
mejo- merged 1 commit intomainfrom
renovate/focus-trap-8.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 29, 2026

This PR contains the following updates:

Package Change Age Confidence
focus-trap ^7.8.0^8.0.0 age confidence

Release Notes

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

v8.0.0

Compare Source

Major Changes
  • b6ea4b5: Breaking: Fixed a long-standing bug where onPostActivate() would be called before the initial focus node was focused and the trap was fully activated. (#​1747)
    • By default (and for many years now), a trap delays setting focus to the initial focus node to the next frame (setTimeout(0)) but wasn't delaying calling onPostActivate() until after that delay.
    • With the new isolateSubtrees='aria-hidden' option, the currently-focused node's container (a non-subtree being "disabled") would get hidden before the delay was up, resulting in Chrome preventing the effect of aria-hidden on that subtree with a warning in the console due to the container being hidden still containing focus (e.g. the "activate trap" button).
    • With the fix, subtree isolation and the call to onPostActivate() await the initial focus delay (if there is one, which is default behavior; remove it with delayInitialFocus=false) before being applied/called.
    • This may cause tests to fail, requiring the addition of slight delays before testing a given state (e.g. await waitFor(() => expect(initialFocusNode).toBeFocused()).
    • It may also disrupt current assumptions about the state of the initial focus node in code that runs in your onPostActivate() handler (prior to this change, that node would not be focused yet; after this change, it will be focused).

Configuration

📅 Schedule: Branch creation - "before 5am every weekday,every weekend" in timezone Europe/Berlin, 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 January 29, 2026 00:24
@renovate renovate Bot force-pushed the renovate/focus-trap-8.x branch from 1293cd0 to 9dd02d2 Compare February 2, 2026 16:47
@mejo- mejo- force-pushed the renovate/focus-trap-8.x branch 2 times, most recently from 70e1e21 to e41f960 Compare February 5, 2026 09:07
@renovate renovate Bot force-pushed the renovate/focus-trap-8.x branch from e41f960 to 51ced48 Compare February 12, 2026 11:46
@mejo- mejo- force-pushed the renovate/focus-trap-8.x branch from 51ced48 to a56c8ca Compare February 14, 2026 22:26
@mejo- mejo- disabled auto-merge February 15, 2026 09:54
@mejo- mejo- merged commit 32a9f06 into main Feb 15, 2026
51 of 53 checks passed
@mejo- mejo- deleted the renovate/focus-trap-8.x branch February 15, 2026 09:54
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.

1 participant