-
Notifications
You must be signed in to change notification settings - Fork 217
Description
Describe the bug
The value of the Editor cannot be reset multiple times when used in a Reactive and Template driven Form.
Trying to set an empty string through the built-in Form methods (setValue, patchValue), the Editor values don't seem to reflect the changes and cannot be reset.
Template driven:
https://user-images.githubusercontent.com/49076727/169473360-0ffe6049-15d5-4fa9-9005-f04961972c2e.mp4
To Reproduce
Reactive - https://stackblitz.com/edit/angular-qlotxv-dsak9w
Template driven - https://stackblitz.com/edit/angular-x8uhrs-nns2sc?file=src%2Fapp%2Fapp.component.ts
- Clear the initial value with the button.
- Type in the Editor.
- Clear the new value with the button.
If setting any truthy value through the Form methods, the Editor behaves as expected.
https://stackblitz.com/edit/angular-qlotxv-8tuccn
Workaround
Template driven:
https://stackblitz.com/edit/angular-x8uhrs-ekfxvb?file=src%2Fapp%2Fapp.component.ts