fix default values

This commit is contained in:
Pete Matsyburka committed 2024-02-08 20:12:08 +02:00
1 parent 6d590e13c9
commit 8f457be719
4 files changed
+30 -10

No files matched your search

+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: {