diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-15 18:03:40 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-15 18:03:40 +0100 |
commit | b3eb664b58770c8374c52d837ff2efe3fc2bbd61 (patch) | |
tree | 7bbcb062c22c0c85176caa322d797129291cfd82 /apps/files/src/components/FileEntryMixin.ts | |
parent | 6beaed95a8c9e162ba0cf91bd3a45b6a34b95536 (diff) | |
download | nextcloud-server-fix/better-drag-n-drop.tar.gz nextcloud-server-fix/better-drag-n-drop.zip |
Diffstat (limited to 'apps/files/src/components/FileEntryMixin.ts')
-rw-r--r-- | apps/files/src/components/FileEntryMixin.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index 9798a312935..1f6c7035f85 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -11,6 +11,7 @@ import { generateUrl } from '@nextcloud/router' import { isPublicShare } from '@nextcloud/sharing/public' import { t } from '@nextcloud/l10n' import { vOnClickOutside } from '@vueuse/components' +import { extname } from 'path' import Vue, { computed, defineComponent } from 'vue' import { action as sidebarAction } from '../actions/sidebarAction.ts' @@ -374,6 +375,14 @@ export default defineComponent({ this.dragover = false }, + /** + * Callback when the drop listener is done. + * We reset the dragover state. + */ + onDrop() { + this.dragover = false + }, + async onDragStart(event: DragEvent) { event.stopPropagation() if (!this.canDrag || !this.fileid) { |