preserve textarea in the form

pull/133/head
DocuSeal 2 years ago
parent b6f7a7dd15
commit 6684a27e2f

@ -89,6 +89,15 @@ export default {
}
}
},
mounted () {
this.isTextArea = this.modelValue?.includes('\n')
if (this.isTextArea) {
this.$nextTick(() => {
this.resizeTextarea()
})
}
},
methods: {
resizeTextarea () {
const textarea = this.$refs.textarea

Loading…
Cancel
Save