Skip to content

Commit

Permalink
fix: autofocus (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 25, 2024
1 parent 73670cc commit 398026f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/editor/components/editor/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@ import {TuiEditorPortalHost} from './portal/editor-portal-host.component';
styleUrls: ['./editor.component.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
tuiAutoFocusOptionsProvider({delay: TUI_ANIMATIONS_DEFAULT_DURATION}),
TUI_EDITOR_PROVIDERS,
{
provide: TUI_APPEARANCE_OPTIONS,
useValue: {appearance: 'textfield'},
},
tuiAutoFocusOptionsProvider({
delay: TUI_ANIMATIONS_DEFAULT_DURATION,
query: '[contenteditable].ProseMirror',
}),
],
hostDirectives: [
{
Expand Down

0 comments on commit 398026f

Please sign in to comment.