diff --git a/src/components/Navigator.vue b/src/components/Navigator.vue index caac25b8c..c7c3375ec 100644 --- a/src/components/Navigator.vue +++ b/src/components/Navigator.vue @@ -26,6 +26,7 @@ :allow-hiding="allowHiding" :navigator-references="navigatorReferences" @close="$emit('close')" + @navigate="$emit('navigate', $event)" > diff --git a/src/components/Navigator/NavigatorCard.vue b/src/components/Navigator/NavigatorCard.vue index 0f6e25f5c..235c2bbbe 100644 --- a/src/components/Navigator/NavigatorCard.vue +++ b/src/components/Navigator/NavigatorCard.vue @@ -967,6 +967,8 @@ export default { * that points to another technology. */ handleNavigationChange(uid) { + // force-close the navigator on mobile + this.$emit('navigate', uid); // if the path is outside of this technology tree, dont store the uid if (this.childrenMap[uid].path.startsWith(this.technologyPath)) { this.setActiveUID(uid); diff --git a/src/views/DocumentationTopic.vue b/src/views/DocumentationTopic.vue index 2efed4090..97ac95eba 100644 --- a/src/views/DocumentationTopic.vue +++ b/src/views/DocumentationTopic.vue @@ -47,6 +47,7 @@ :scrollLockID="scrollLockID" :render-filter-on-top="breakpoint !== BreakpointName.large" @close="handleToggleSidenav(breakpoint)" + @navigate="handleNavigate(breakpoint)" >