fix some bugs

This commit is contained in:
Henry Jameson 2019-09-24 00:06:53 +03:00
parent 6f0257cd7d
commit 2154152d08
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -96,7 +96,7 @@
@keyup.ctrl.enter="postStatus(newStatus)"
@drop="fileDrop"
@dragover.prevent="fileDrag"
@keydown.exact="resize"
@input="resize"
@compositionupdate="resize"
@paste="paste"
/>