Skip to content

Commit

Permalink
fix: update updateDOM method signature to use 'this' type for better …
Browse files Browse the repository at this point in the history
…type safety
  • Loading branch information
olafsulich committed Jan 2, 2025
1 parent e8a0b75 commit 65ccf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/components/RichTextEditor/nodes/EmojiNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class EmojiNode extends TextNode {
return dom;
}

updateDOM(prevNode: TextNode, dom: HTMLElement, config: EditorConfig): boolean {
updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean {
const inner = dom.firstChild;
if (inner === null) {
return true;
Expand Down

0 comments on commit 65ccf13

Please sign in to comment.