mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 20:40:39 -05:00
fix(files): Make openMenu watcher null safe
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
2a5d6bb713
commit
eb897b112e
1 changed files with 5 additions and 3 deletions
|
|
@ -222,9 +222,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)
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue