We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e59e631 commit 9d3e5e6Copy full SHA for 9d3e5e6
packages/client/composables/useNav.ts
@@ -5,6 +5,7 @@ import { slides } from '#slidev/slides'
5
import { clamp } from '@antfu/utils'
6
import { parseRangeString } from '@slidev/parser/utils'
7
import { createSharedComposable } from '@vueuse/core'
8
+import { hideAllPoppers } from 'floating-vue'
9
import { computed, ref, watch } from 'vue'
10
import { useRoute, useRouter } from 'vue-router'
11
import { CLICKS_MAX } from '../constants'
@@ -118,6 +119,8 @@ export function useNavBase(
118
119
120
watch(currentSlideRoute, (next, prev) => {
121
navDirection.value = next.no - prev.no
122
+ if (prev)
123
+ hideAllPoppers()
124
})
125
126
async function openInEditor(url?: string) {
0 commit comments