set textarea max height

This commit is contained in:
Pete Matsyburka
2024-09-12 20:28:16 +03:00
committed by Oleksandr Turchyn
parent 10fbdf6612
commit cfc32ee522
+1 -1
View File
@@ -147,7 +147,7 @@ export default {
const textarea = this.$refs.textarea
textarea.style.height = 'auto'
textarea.style.height = textarea.scrollHeight + 'px'
textarea.style.height = Math.min(350, textarea.scrollHeight) + 'px'
},
toggleTextArea () {
this.isTextArea = true