Skip to content

fix(Modal): skip initial focus on the server - #330

Merged
xidedix merged 1 commit into
v5.7from
fix/modal-ssr-focus-trap
Oct 27, 2026
Merged

xidedix merged 1 commit into
v5.7from
fix/modal-ssr-focus-trap

Conversation

@xidedix

@xidedix xidedix commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

CdkTrapFocus creates its focus trap only in the browser, so the focus timer
threw a TypeError when a modal opened during server rendering.

CdkTrapFocus creates its focus trap only in the browser, so the focus timer
threw a TypeError when a modal opened during server rendering.
@xidedix
xidedix merged commit b473685 into v5.7 Oct 27, 2026
9 checks passed
@xidedix
xidedix deleted the fix/modal-ssr-focus-trap branch October 27, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant