Skip to content

Commit

Permalink
Merge pull request #6729 from nextcloud/fix/dragged_over
Browse files Browse the repository at this point in the history
fix(editor): Also unset `draggedOver` at drop
  • Loading branch information
juliusknorr authored Dec 3, 2024
2 parents 56be220 + 3ac3225 commit c14cea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Editor/MediaHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@image-paste="onPaste"
@dragover.prevent.stop="setDraggedOver(true)"
@dragleave.prevent.stop="setDraggedOver(false)"
@drop.prevent.stop="setDraggedOver(false)"
@file-drop="onEditorDrop">
<input v-show="false"
ref="attachmentFileInput"
Expand Down Expand Up @@ -86,7 +87,6 @@ export default {
},
onEditorDrop(e) {
this.uploadAttachmentFiles(e.detail.files, e.detail.position)
this.draggedOver = false
},
onAttachmentUploadFilePicked(event) {
this.uploadAttachmentFiles(event.target.files)
Expand Down

0 comments on commit c14cea9

Please sign in to comment.