🐛 Fix issue that TextEdit did not work anymore

This commit is contained in:
Jan Oberhauser 2020-01-03 21:48:55 -06:00
parent c8b4bc9304
commit d59e005436

View file

@ -7,7 +7,7 @@
{{parameter.displayName}}:
</div>
<div class="text-editor" @keydown.stop @keydown.esc="closeDialog()">
<el-input type="textarea" ref="inputField" :value="value" :placeholder="parameter.placeholder" @change="valueChanged" @keydown.stop="noOp" rows="15" />
<el-input v-model="tempValue" type="textarea" ref="inputField" :value="value" :placeholder="parameter.placeholder" @change="valueChanged" @keydown.stop="noOp" rows="15" />
</div>
</div>
@ -32,6 +32,7 @@ export default Vue.extend({
],
data () {
return {
tempValue: '', // el-input does not seem to work without v-model so add one
};
},
methods: {
@ -54,6 +55,9 @@ export default Vue.extend({
});
}
},
value () {
this.tempValue = this.value as string;
},
},
});
</script>