There should be no ExpressionChangedAfterItHasBeenCheckedError
An ExpressionChangedAfterItHasBeenCheckedError is encountered when using MatSelectionList with a form control that has a non-empty array as its initial value.
"@angular/material": "7.3.1"
Hi,
I see the issue has been closed about 2 months ago, but the issue seems to be still existing. I've updated the stackblitz to Angular 8.0.0-rc.0 and the error is still thrown:
https://stackblitz.com/edit/angular-bmnswy-wmwxen?file=app%2Flist-selection-example.ts
Had to fix it by running this.changeDetectorRef.detectChanges(); after the variable used for the items got updated.
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._
Most helpful comment
Hi,
I see the issue has been closed about 2 months ago, but the issue seems to be still existing. I've updated the stackblitz to Angular 8.0.0-rc.0 and the error is still thrown:
https://stackblitz.com/edit/angular-bmnswy-wmwxen?file=app%2Flist-selection-example.ts