Skip to content

Commit

Permalink
chore: cleanup onChanges function
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 8, 2022
1 parent c58bb56 commit 07170cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-editor/src/lib/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 07170cf

Please sign in to comment.