Is this a regression?
The previous version in which this bug was not present was
No response
Description
Auto-focusing a CSS class fails when animations are disabled
Reproduction
StackBlitz link: https://stackblitz.com/edit/yuzht5-trwt8i?file=src%2Fmain.ts
Steps to reproduce:
- Open dialog
- Focus is not on install button
Expected Behavior
Auto-focusing a CSS class works regardless of animations
Actual Behavior
Auto-focusing a CSS class fails when animations are disabled
Environment
- Angular: 18.0.0
- CDK/Material: 18.0.0