diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 60cb5a9a3d77e8e4222978e9ba115a10800790d6..10e7514417806be18b889b745904a9f1a01c9d1a 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -249,7 +249,7 @@ const PostStatusForm = { return fileTypeService.fileType(fileInfo.mimetype) }, paste (e) { - this.resize() + this.resize(e) if (e.clipboardData.files.length > 0) { // prevent pasting of file as text e.preventDefault() diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 99ffeef8eed6efe79056b21feda94e0f1bfcbe54..d24f1981ecb5bcf8517ff4266c8899174331d184 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -96,7 +96,7 @@ @keyup.ctrl.enter="postStatus(newStatus)" @drop="fileDrop" @dragover.prevent="fileDrag" - @keydown.exact="resize" + @input="resize" @compositionupdate="resize" @paste="paste" />