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'
5
5
import { clamp } from '@antfu/utils'
6
6
import { parseRangeString } from '@slidev/parser/utils'
7
7
import { createSharedComposable } from '@vueuse/core'
8
+ import { hideAllPoppers } from 'floating-vue'
8
9
import { computed , ref , watch } from 'vue'
9
10
import { useRoute , useRouter } from 'vue-router'
10
11
import { CLICKS_MAX } from '../constants'
@@ -118,6 +119,8 @@ export function useNavBase(
118
119
119
120
watch ( currentSlideRoute , ( next , prev ) => {
120
121
navDirection . value = next . no - prev . no
122
+ if ( prev )
123
+ hideAllPoppers ( )
121
124
} )
122
125
123
126
async function openInEditor ( url ?: string ) {
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ function onAfterLeave() {
87
87
>
88
88
<template v-for =" route of loadedRoutes " :key =" route .no " >
89
89
<SlideWrapper
90
+ v-if =" route === currentSlideRoute || isPrintMode"
90
91
v-show =" route === currentSlideRoute"
91
92
:clicks-context =" isPrintMode && !isPrintWithClicks ? createFixedClicks(route, CLICKS_MAX) : getPrimaryClicks(route)"
92
93
:route =" route"
You can’t perform that action at this time.
0 commit comments