-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExpressionChangedAfterItHasBeenCheckedError after changing the formControl (Reactive Form) #139
Comments
Hi @chrisschauer. It's the first time I see this error, I'll check it. |
I see that dynamically toggling the value of the |
TBH, I didn't manage to produce the |
Ok, I understand at least my bug. Selecting new language triggers setting new data on the component, which causes changing editor data which fires |
@chrisschauer, could you test if the above PR fixes your issue? |
Actually the PR makes the two-way binding with |
Thank you very much for effort of investigation @ma2ciek. Thx |
Fix: The `<ckeditor>` component won't call the CVA `registerOnChange()` when the change comes from the CVA. This will fix an issue with changing data in Reactive Forms. Closes #139.
Thanks, @chrisschauer, I need to take a look at #141 and its PR and once it is resolved I'll release a new version, so it should be available within 1-2 weeks. |
Update: The latest release includes the fix - |
Works perfect! |
Hi,
i use ckeditor component in a reactive form, where i can also switch the edit language of the form.
A field e.g. a "Title" is a form group with multiple controls named like "de, en, hu, ...":
The first language change works quite well. After the first one changes of the edit language leads to this error on console:
13:32:27,385 ERROR admin platform.GlobalErrorHandler: handleError: "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ng-pristine: true'. Current value: 'ng-pristine: false'."
Can't see this issue on the material input fields. Anything i can check?
Thx
Angular: 7.2.9
CKEditor-Angularr: 1.1.0
CKEditor-inline: 12.3.0
The text was updated successfully, but these errors were encountered: