ui: fix uninitialized valueCache in markdown editor (#1042)

This commit is contained in:
zzsqjdhqgb authored and GitHub committed 2025-08-23 13:45:52 +01:00
1 parent 5e85f9c753
commit 7f25b0c229
1 file changed
+2
@@ -246,6 +246,8 @@ export default class Editor extends DOMAttachedObject {
/>;
}
this.valueCache = value;
this.reactRoot = ReactDOM.createRoot(ele);
this.reactRoot.render(<EditorComponent />);
$dom.hide();