Commit 2154152d authored by HJ's avatar HJ 🐼

fix some bugs

parent 6f0257cd
Pipeline #17519 failed with stages
in 4 minutes and 33 seconds
......@@ -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()
......
......@@ -96,7 +96,7 @@
@keyup.ctrl.enter="postStatus(newStatus)"
@drop="fileDrop"
@dragover.prevent="fileDrag"
@keydown.exact="resize"
@input="resize"
@compositionupdate="resize"
@paste="paste"
/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment