This commit is contained in:
Timothy J. Baek 2024-10-06 15:30:16 -07:00
parent dc6e68bd60
commit 50b1a3471c

View File

@ -31,12 +31,14 @@
} }
const updateValue = () => { const updateValue = () => {
if (_value !== value) {
_value = value; _value = value;
if (codeEditor) { if (codeEditor) {
codeEditor.dispatch({ codeEditor.dispatch({
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }] changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
}); });
} }
}
}; };
export let id = ''; export let id = '';