fix: monaco build problems

This commit is contained in:
Arpad Gabor
2021-10-23 19:06:02 +03:00
parent 62f0899e10
commit f811992527
2 changed files with 7 additions and 8 deletions

View File

@@ -57,12 +57,11 @@ export default mixins(genericHelpers).extend({
readOnly: this.isReadOnly,
});
this.monacoInstance.onDidChangeModelContent((ev) => {
if (this.monacoInstance) {
const model = this.monacoInstance.getModel();
if (model) {
this.$emit('valueChanged', model.getValue());
}
this.monacoInstance.onDidChangeModelContent(() => {
const model = this.monacoInstance!.getModel();
if (model) {
this.$emit('valueChanged', model.getValue());
}
});