Skip to content

Commit

Permalink
Merge pull request #3549 from nextcloud/fix/close-edit-local
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Mar 26, 2024
2 parents ac6e189 + 6cbe3e2 commit c9d4c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mixins/openLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export default {
cancel: t('richdocuments', 'Continue editing online'),
},
(decision) => {
if (window.event?.target.classList.contains('oc-dialog-close')) {
return
}

if (!decision) {
window.OCA.Viewer.open({ path: fileName })
return
Expand Down

0 comments on commit c9d4c9b

Please sign in to comment.