Closed
Description
Reproduction
https://stackblitz.com/edit/mat-menu-lazy-cdk-trap-focus?file=src/app/app.component.html
Steps to reproduce:
- Open the menu, tab through the inputs. It'll stop at the last input. Tabbing backwards will start focusing out of the trap (the trigger button, other elements in StackBlitz)
- Comment out the
ng-template
s to disable lazy loading, see that the focus trap now works
Expected Behavior
I'd expect it to trap the focus.
Actual Behavior
Focus is not trapped.
Environment
- Angular: 9
- CDK/Material: 9
- Browser(s): Firefox 73, Chrome 80
- Operating System (e.g. Windows, macOS, Ubuntu): MacOS Catalina