refac
This commit is contained in:
1 parent
dc6e68bd60
commit
50b1a3471c
1 file changed
+7
-5
@@ -31,11 +31,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateValue = () => {
|
const updateValue = () => {
|
||||||
_value = value;
|
if (_value !== value) {
|
||||||
if (codeEditor) {
|
_value = value;
|
||||||
codeEditor.dispatch({
|
if (codeEditor) {
|
||||||
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
codeEditor.dispatch({
|
||||||
});
|
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user