fix(ts_web): resolve TypeScript nullability and event typing issues across web components
This commit is contained in:
@@ -58,11 +58,11 @@ export class DeesInputRichtext extends DeesInputBase<string> {
|
||||
@state()
|
||||
accessor wordCount: number = 0;
|
||||
|
||||
private editorElement: HTMLElement;
|
||||
private linkInputElement: HTMLInputElement;
|
||||
private editorElement!: HTMLElement;
|
||||
private linkInputElement!: HTMLInputElement;
|
||||
private tiptapBundle: ITiptapBundle | null = null;
|
||||
|
||||
public editor: Editor;
|
||||
public editor!: Editor;
|
||||
|
||||
public static styles = richtextStyles;
|
||||
|
||||
@@ -235,8 +235,8 @@ export class DeesInputRichtext extends DeesInputBase<string> {
|
||||
// Load Tiptap from CDN
|
||||
this.tiptapBundle = await DeesServiceLibLoader.getInstance().loadTiptap();
|
||||
|
||||
this.editorElement = this.shadowRoot.querySelector('.editor-content');
|
||||
this.linkInputElement = this.shadowRoot.querySelector('.link-input input');
|
||||
this.editorElement = this.shadowRoot!.querySelector('.editor-content')!;
|
||||
this.linkInputElement = this.shadowRoot!.querySelector('.link-input input')!;
|
||||
this.initializeEditor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user