Open
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
When cdkMenuTriggerData is used to pass additional context to a menu template the template context is not update when the data is changed.
Reproduction
GitHub
StackBlitz
Steps to reproduce:
- Open the application.
- Click the button "Click Me!". Menu with initial counter value is shown.
- Click "Increment" button.
- Click "Click Me!" button second time
Expected Behavior
Counter value in the context menu should be in sync with the value on the "Click Me!" button.
Actual Behavior
Counter value in the context menu keep initial value and is not updated when context changes.
Environment
- Angular: 15.0.0
- CDK/Material: 15.0.2