Skip to content

Commit 6200c06

Browse files
committed
Fix: Correct errors in dom tracking in the Client.
1 parent ef961f2 commit 6200c06

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

client/src/CodeMirror-integration.mts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,6 @@ class DocBlockWidget extends WidgetType {
457457
// "Update a DOM element created by a widget of the same type (but
458458
// different, non-eq content) to reflect this widget."
459459
updateDOM(dom: HTMLElement, view: EditorView): boolean {
460-
// If this update has already been made to the provided DOM, then we're
461-
// done. TODO: does this actually improve performance?
462-
if (this.dom === dom) {
463-
return true;
464-
}
465-
466460
(dom.childNodes[0] as HTMLDivElement).innerHTML = this.indent;
467461

468462
// The contents div could be a TinyMCE instance, or just a plain div.
@@ -476,7 +470,6 @@ class DocBlockWidget extends WidgetType {
476470
contents_div.innerHTML = this.contents;
477471
mathJaxTypeset(contents_div);
478472
}
479-
this.dom = dom as HTMLDivElement;
480473

481474
// Indicate the update was successful.
482475
return true;

0 commit comments

Comments
 (0)