Skip to content

Commit

Permalink
fix: don't register focus plugin twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 8, 2022
1 parent 07170cf commit 9891b96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions projects/ngx-editor/src/lib/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ export class NgxEditorComponent implements ControlValueAccessor, OnInit, OnChang
this.focusIn.emit();
}));

this.editor.registerPlugin(plugins.focus(() => {
this.focusIn.emit();
}));

this.editor.registerPlugin(plugins.blur(() => {
this.focusOut.emit();
this.onTouched();
Expand Down

0 comments on commit 9891b96

Please sign in to comment.