Skip to content

Commit 64aca7d

Browse files
authored
Merge pull request #5789 from nextcloud-libraries/backport/5632/next
[next] fix(NcAppNavigationItem): Fix popper boundary element
2 parents 98d0545 + 26cb1ce commit 64aca7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/NcAppNavigationItem/NcAppNavigationItem.vue

+5-3
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ export default {
627627

628628
data() {
629629
return {
630+
actionsBoundariesElement: undefined,
630631
editingValue: '',
631632
opened: this.open, // Collapsible state
632633
editingActive: false,
@@ -660,9 +661,6 @@ export default {
660661
undoButtonAriaLabel() {
661662
return t('Undo changes')
662663
},
663-
actionsBoundariesElement() {
664-
return document.querySelector('#content-vue') || undefined
665-
},
666664
},
667665

668666
watch: {
@@ -671,6 +669,10 @@ export default {
671669
},
672670
},
673671

672+
mounted() {
673+
this.actionsBoundariesElement = document.querySelector('#content-vue') || undefined
674+
},
675+
674676
methods: {
675677
// sync opened menu state with prop
676678
onMenuToggle(state) {

0 commit comments

Comments
 (0)