Skip to content

Commit

Permalink
Merge pull request #5456 from nextcloud-libraries/fix/reactive-nav-it…
Browse files Browse the repository at this point in the history
…em-collapse

fix(NcAppNavigationItem): Fix uncollapsible entry
  • Loading branch information
Pytal committed Apr 8, 2024
2 parents e2a36dc + 2b6c805 commit b671917
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/NcAppNavigationItem/NcAppNavigationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ export default {
*/
menuOpenLocalValue: false,
focused: false,
collapsible: false,
}
},
Expand All @@ -648,10 +649,6 @@ export default {
return this.to && !this.href
},
collapsible() {
return this.allowCollapse && !!this.$slots.default
},
// Checks if the component is already a children of another
// instance of AppNavigationItem
canHaveChildren() {
Expand Down Expand Up @@ -753,6 +750,7 @@ export default {
updateSlotInfo() {
this.hasChildren = !!this.$slots.default
this.collapsible = this.allowCollapse && !!this.$slots.default
},
/**
Expand Down

0 comments on commit b671917

Please sign in to comment.