Skip to content

Focus trap breaks on the root of an ng-template in an overlay #16346

Closed
@jelbourn

Description

@jelbourn

Reproduction

https://stackblitz.com/edit/angular-zgwmej?file=src%2Fapp%2Fapp.component.html

There seems to be a timing issue where the focus trap anchor elements are added to the DOM before the overlay element is moved into the overlay container, so those elements end up in the wrong place and don't capture anything.

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/overlay

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions