components icon indicating copy to clipboard operation
components copied to clipboard

bug(mat-chip-row): NG0100 mat-focused error

Open amri04 opened this issue 1 year ago • 3 comments
trafficstars

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:

  1. 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

amri04 avatar Jul 10 '24 12:07 amri04

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.

S-Prosper05 avatar Aug 02 '24 11:08 S-Prosper05

Hi @S-Prosper05, the issue still exists, i just updated the dependencies to angular 18.1.3

amri04 avatar Aug 02 '24 11:08 amri04

Hi @amri04, I will take a look at it again

S-Prosper05 avatar Aug 05 '24 06:08 S-Prosper05

I can't reproduce it with the latest code at head. Closing.

crisbeto avatar Dec 24 '24 06:12 crisbeto

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.