Skip to content

Commit

Permalink
Merge pull request #6731 from nextcloud/backport/6729/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(editor): Also unset `draggedOver` at drop
  • Loading branch information
juliusknorr authored Dec 12, 2024
2 parents b126cd5 + 5f029e4 commit 6577ca3
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 6577ca3

Please sign in to comment.