If used with reactive Forms, disabled property can run into "changed after checked" errors
See original GitHub issueWhat is the current behavior? If the Editor is used with reactive Forms together with the disabled property. It can happen, that the disabled state is not correctly processed at the editor, if the value changed during editor initialization. There is also a warning logged at console.
minimal demo codesandbox.io
What is the expected behavior?
Maybe it is possible to support the disabled property at FormControl, like it is stated at the warning
new FormControl({value: 'some Text', disabled: true}, Validators.required)
Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? TinyMCE 5.2.0 TinyMCE-Angular 3.3.1 Chrome Browser
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top Results From Across the Web
angular - Reactive forms - disabled attribute - Stack Overflow
I have been using [attr.disabled] because I still like this template driven than programmatic enable()/disable() as it is superior IMO. Change
Read more >Disabling Form Controls When Working With Reactive Forms ...
We recommend using this approach to avoid 'changed after checked' errors. Angular tells you that it's better for you to use the ways...
Read more >Exploring the difference between disabling a form control ...
I n this article, we will explore different ways to disable reactive form ... to the "changed after checked" error, that is, the...
Read more >How to handle reactive way for disabled property for input e
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true when you set up...
Read more >Validating form input - Angular
Every time the value of a form control changes, Angular runs validation and generates either a list of validation errors that results in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@liesahead feel free to open a PR at any time if you can help with this issue. Unfortunately, I haven’t been able to look into it.
It’s a really large file, but regarding tinymce, here’s what I have :
I don’t know how package-lock.json is build. Maybe it depends on npm version.