Skip to content

Commit

Permalink
Merge pull request nextcloud#47891 from nextcloud/fix/make-watcher-nu…
Browse files Browse the repository at this point in the history
…ll-safe
  • Loading branch information
provokateurin authored Sep 11, 2024
2 parents 2b5dd11 + c91efd3 commit 0b16b20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions apps/files/src/components/FileEntryMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,11 @@ export default defineComponent({
return
}
// Reset any right menu position potentially set
const root = this.$el?.closest('main.app-content') as HTMLElement
root.style.removeProperty('--mouse-pos-x')
root.style.removeProperty('--mouse-pos-y')
const root = document.getElementById('app-content-vue')
if (root !== null) {
root.style.removeProperty('--mouse-pos-x')
root.style.removeProperty('--mouse-pos-y')
}
}, 300)
}
},
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 0b16b20

Please sign in to comment.