mobile-directing-system / mds-desktop

Desktop app for Mobile Directing System
https://mobile-directing-system.github.io/mds-desktop
MIT License
1 stars 3 forks source link

[BUG]: Validator change throws ExpressionChangedAfterItHasBeenCheckedError in Angular debug mode #284

Open atlars opened 9 months ago

atlars commented 9 months ago

Bug Description

PhoneChannelDetailsComponent and MailChannelDetailsComponent implement a custom Validator to propagate the errors to the parent form control. Both components are instantiated in a switch statement. When switching between the forms a ExpressionChangedAfterItHasBeenCheckedError is thrown. This only happens in debug mode of Angular.

This bug is already known since 2018 and has not been fixed yet: https://github.com/angular/angular/issues/23657

image

Expected Behavior

When switching between the two forms, ExpressionChangedAfterItHasBeenCheckedError should not be thrown in Angular debug mode.

Steps to Reproduce

See bug description

Possible Solutions

Further Information

No response