File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { slides } from '#slidev/slides'
55import { clamp } from '@antfu/utils'
66import { parseRangeString } from '@slidev/parser/utils'
77import { createSharedComposable } from '@vueuse/core'
8+ import { hideAllPoppers } from 'floating-vue'
89import { computed , ref , watch } from 'vue'
910import { useRoute , useRouter } from 'vue-router'
1011import { CLICKS_MAX } from '../constants'
@@ -118,6 +119,8 @@ export function useNavBase(
118119
119120 watch ( currentSlideRoute , ( next , prev ) => {
120121 navDirection . value = next . no - prev . no
122+ if ( prev )
123+ hideAllPoppers ( )
121124 } )
122125
123126 async function openInEditor ( url ?: string ) {
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ function onAfterLeave() {
8787 >
8888 <template v-for =" route of loadedRoutes " :key =" route .no " >
8989 <SlideWrapper
90+ v-if =" route === currentSlideRoute || isPrintMode"
9091 v-show =" route === currentSlideRoute"
9192 :clicks-context =" isPrintMode && !isPrintWithClicks ? createFixedClicks(route, CLICKS_MAX) : getPrimaryClicks(route)"
9293 :route =" route"
You can’t perform that action at this time.
0 commit comments