Skip to content

Commit

Permalink
fix(editor): Also unset draggedOver at drop
Browse files Browse the repository at this point in the history
Fixes the background staying at light blue when dragging and dropping
text in the editor.

Fixes: #6724

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- authored and juliusknorr committed Dec 12, 2024
1 parent b126cd5 commit 5f029e4
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 5f029e4

Please sign in to comment.