diff --git a/app/javascript/submission_form/text_step.vue b/app/javascript/submission_form/text_step.vue index 7cfbd6f0..e6560c72 100644 --- a/app/javascript/submission_form/text_step.vue +++ b/app/javascript/submission_form/text_step.vue @@ -151,8 +151,10 @@ export default { resizeTextarea () { const textarea = this.$refs.textarea - textarea.style.height = 'auto' - textarea.style.height = Math.min(250, textarea.scrollHeight) + 'px' + if (textarea) { + textarea.style.height = 'auto' + textarea.style.height = Math.min(250, textarea.scrollHeight) + 'px' + } }, toggleTextArea () { this.isTextArea = true