Skip to content

Commit

Permalink
feat(editor-content): apply feedback #30059
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Sep 30, 2024
1 parent a06c249 commit 0e7199a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ export class DotEditContentFileFieldComponent implements ControlValueAccessor, O

constructor() {
effect(() => {
const value = this.store.value();

if (this.onChange && this.onTouched) {
this.onChange(value);
this.onTouched();
if (!this.onChange && !this.onTouched) {
return;
}

const value = this.store.value();
this.onChange(value);
this.onTouched();
});
}

Expand Down

0 comments on commit 0e7199a

Please sign in to comment.