Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Bugfix: Drag & Drop doesn't select files correctly #1562

Merged
merged 3 commits into from
Aug 4, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-selected-files-drag-drop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Drag & Drop doesn't select files correctly

Due to refactoring the selection of the files when dragging doesn't work right.

https://github.com/owncloud/owncloud-design-system/issues/1560
https://github.com/owncloud/owncloud-design-system/pull/1562
2 changes: 1 addition & 1 deletion src/components/table/OcTableFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export default {
methods: {
fileDragged(file) {
const selectedResourceInResources = this.selectedResources.some(e => e.id === file.id)
if (selectedResourceInResources) {
if (!selectedResourceInResources) {
this.selectedResources.push(file)
}
this.$emit("select", this.selectedResources)
Expand Down