Skip to content

Commit 3ecff16

Browse files
committed
fix: Cannot read properties of null (reading 'removeChild')
1 parent 6c0f2c3 commit 3ecff16

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class ReactWidgetImpl<
8282

8383
destroy() {
8484
// this only works after tiddlywiki 5.3.0
85+
this.domNodes = [];
8586
super.destroy?.();
8687
this.root?.unmount?.();
8788
}

0 commit comments

Comments
 (0)