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 backportbot[bot] committed Dec 3, 2024
1 parent e4757ed commit dd61322
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 @@ -27,6 +27,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 @@ -103,7 +104,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 dd61322

Please sign in to comment.