components
components copied to clipboard
bug(mat-chip-row): NG0100 mat-focused error
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
I have a chip connected to an input field, when clicking on the chip i open a mat dialog. This results in a NG0100 ExpressionChangedAfterItHasBeenCheckedError. (Expression has changed after it was checked. Previous value for 'mat-focused': 'true'. Current value: 'false')
Reproduction
StackBlitz link: https://stackblitz.com/edit/catwnq?file=src%2Fexample%2Fchips-input-example.html Steps to reproduce:
- click on the chip => NG0100: ExpressionChangedAfterItHasBeenCheckedError (see console)
Expected Behavior
No error
Actual Behavior
NG0100 ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'mat-focused': 'true'. Current value: 'false'
Environment
- Angular: 18.1.3
- CDK/Material: 18.1.3
- Browser(s): Chrome
- Operating System: WIndows
Hi @amri04, I tested with the latest version of Material 18.1.3 and it seems like the problem was fixed with the form field focus.
Hi @S-Prosper05, the issue still exists, i just updated the dependencies to angular 18.1.3
Hi @amri04, I will take a look at it again
I can't reproduce it with the latest code at head. Closing.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.