fix js error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user