Skip to content

Commit 9c93643

Browse files
author
Pooya Parsa
committed
hide navbar/collapse when item is clicked
1 parent 4f270fd commit 9c93643

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/collapse.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
}
6161
this.toggle();
6262
});
63+
64+
this.$root.$on('hidden::dropdown', target => {
65+
if (target !== this.id) {
66+
this.show = false;
67+
}
68+
});
6369
}
6470
};
6571

0 commit comments

Comments
 (0)