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

Commit

Permalink
Merge pull request #1562 from owncloud/bugfix-selected-file-drag-drop
Browse files Browse the repository at this point in the history
Bugfix: Drag & Drop doesn't select files correctly
  • Loading branch information
lookacat authored Aug 4, 2021
2 parents 01e02bf + b65cb5d commit ab211aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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 there was a case where selecting files when dragging didn't work right. This has been addressed and fixed now.

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 @@ -383,7 +383,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

0 comments on commit ab211aa

Please sign in to comment.