diff --git a/projects/ngx-editor/src/lib/editor.component.ts b/projects/ngx-editor/src/lib/editor.component.ts index 87f07f72..fd546feb 100644 --- a/projects/ngx-editor/src/lib/editor.component.ts +++ b/projects/ngx-editor/src/lib/editor.component.ts @@ -130,7 +130,7 @@ export class NgxEditorComponent implements ControlValueAccessor, OnInit, OnChang } ngOnChanges(changes: SimpleChanges): void { - if (changes?.['placeholder'] && !changes['placeholder'].isFirstChange()) { + if (changes['placeholder'] && !changes['placeholder'].isFirstChange()) { this.setPlaceholder(changes['placeholder'].currentValue); } }