diff --git a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue index a26567f31f..8d60b47845 100644 --- a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue +++ b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue @@ -627,6 +627,7 @@ export default { data() { return { + actionsBoundariesElement: undefined, editingValue: '', opened: this.open, // Collapsible state editingActive: false, @@ -660,9 +661,6 @@ export default { undoButtonAriaLabel() { return t('Undo changes') }, - actionsBoundariesElement() { - return document.querySelector('#content-vue') || undefined - }, }, watch: { @@ -671,6 +669,10 @@ export default { }, }, + mounted() { + this.actionsBoundariesElement = document.querySelector('#content-vue') || undefined + }, + methods: { // sync opened menu state with prop onMenuToggle(state) {