We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce681fc commit f204920Copy full SHA for f204920
packages/components/src/content-nav/index.vue
@@ -51,7 +51,14 @@ const {
51
const overlayShellRef = ref<ContentNavOverlayExpose | null>(null)
52
53
const hostRef = computed(() => overlayShellRef.value?.hostEl ?? null)
54
-const resolvedSearchOptions = computed(() => (search.value ? search.value : undefined))
+const resolvedSearchOptions = computed<ContentNavSearchOptions | undefined>(() => {
55
+ const value = search.value
56
+ if (value === false || value == null) {
57
+ return undefined
58
+ }
59
+
60
+ return typeof value === 'object' ? value : {}
61
+})
62
const searchSlotOptions = computed<ContentNavSearchOptions>(() => resolvedSearchOptions.value ?? {})
63
64
function resolveTargetFromItems(id: string) {
0 commit comments