fix js error

This commit is contained in:
Pete Matsyburka
2025-05-30 16:58:20 +03:00
parent f7dfc0b2ed
commit 2a031c14c8
+4 -2
View File
@@ -151,8 +151,10 @@ export default {
resizeTextarea () { resizeTextarea () {
const textarea = this.$refs.textarea const textarea = this.$refs.textarea
textarea.style.height = 'auto' if (textarea) {
textarea.style.height = Math.min(250, textarea.scrollHeight) + 'px' textarea.style.height = 'auto'
textarea.style.height = Math.min(250, textarea.scrollHeight) + 'px'
}
}, },
toggleTextArea () { toggleTextArea () {
this.isTextArea = true this.isTextArea = true