Skip to content

Commit 329ad3e

Browse files
authored
Merge pull request #8354 from nextcloud-libraries/fix/ncappnav-emit-mobile-stable8
[stable8] fix(NcAppNavigation): also emit `navigation-toggled` on mobile change
2 parents 1010fb5 + 9217d37 commit 329ad3e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/NcAppNavigation/NcAppNavigation.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,16 @@ export default {
229229
},
230230
231231
watch: {
232-
isMobile() {
233-
this.open = !this.isMobile
232+
isMobile(value) {
233+
this.open = !value
234234
this.toggleFocusTrap()
235235
},
236236
237-
open() {
237+
open(value) {
238238
this.toggleFocusTrap()
239+
emit('navigation-toggled', {
240+
open: value,
241+
})
239242
},
240243
},
241244

0 commit comments

Comments
 (0)