set textarea max height
This commit is contained in:
committed by
Oleksandr Turchyn
parent
10fbdf6612
commit
cfc32ee522
@@ -147,7 +147,7 @@ export default {
|
|||||||
const textarea = this.$refs.textarea
|
const textarea = this.$refs.textarea
|
||||||
|
|
||||||
textarea.style.height = 'auto'
|
textarea.style.height = 'auto'
|
||||||
textarea.style.height = textarea.scrollHeight + 'px'
|
textarea.style.height = Math.min(350, textarea.scrollHeight) + 'px'
|
||||||
},
|
},
|
||||||
toggleTextArea () {
|
toggleTextArea () {
|
||||||
this.isTextArea = true
|
this.isTextArea = true
|
||||||
|
|||||||
Reference in New Issue
Block a user