Skip to content

Commit

Permalink
Merge pull request #42566 from nextcloud/fix/files-download-default-a…
Browse files Browse the repository at this point in the history
…ction

fix(files): Fix unresponsive file click to download
  • Loading branch information
Pytal authored Jan 6, 2024
2 parents 568a997 + 5267d62 commit 2e10c94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ export default defineComponent({
},

execDefaultAction(event) {
event.preventDefault()
if (event.ctrlKey || event.metaKey) {
event.preventDefault()
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
return false
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntryGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ export default Vue.extend({
},

execDefaultAction(event) {
event.preventDefault()
if (event.ctrlKey || event.metaKey) {
event.preventDefault()
window.open(generateUrl('/f/{fileId}', { fileId: this.fileid }))
return false
}
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 2e10c94

Please sign in to comment.