fix default values

This commit is contained in:
Pete Matsyburka
2024-02-08 20:12:08 +02:00
parent 6d590e13c9
commit 8f457be719
4 changed files with 30 additions and 10 deletions
+7 -5
View File
@@ -123,12 +123,14 @@ export default {
}
},
mounted () {
this.isTextArea = this.modelValue?.includes('\n')
if (this.modelValue) {
this.isTextArea = this.modelValue.toString().includes('\n')
if (this.isTextArea) {
this.$nextTick(() => {
this.resizeTextarea()
})
if (this.isTextArea) {
this.$nextTick(() => {
this.resizeTextarea()
})
}
}
},
methods: {