mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix uninitialized valueCache in markdown editor (#1042)
This commit is contained in:
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 = ReactDOM.createRoot(ele);
|
||||||
this.reactRoot.render(<EditorComponent />);
|
this.reactRoot.render(<EditorComponent />);
|
||||||
$dom.hide();
|
$dom.hide();
|
||||||
|
|||||||
Reference in new issue
Block a user