Closed
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
matMenuTrigger fails to mark host component dirty after menu closed
Reproduction
Steps to reproduce:
- https://stackblitz.com/edit/angular-bqrgp1?file=src%2Fapp%2Fmenu-overview-example.ts
- open menu: trigger correctly has
aria-expanded="true"
- close menu: trigger still has
aria-expanded="true"
- after removing OnPush, it works as expected
Expected Behavior
aria-expanded
is updated after menu is closed
Actual Behavior
aria-expanded
is only updated when change detection happens next time in the component (triggered by input change or event firing inside the template)
Environment
- Angular: 15.0.3
- CDK/Material: 15.0.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows