diff options
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) { |