Skip to content

Commit

Permalink
fix: comboboxEmpty render and nav menu
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Aug 13, 2024
1 parent 1676719 commit 82505dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Combobox/ComboboxEmpty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Primitive } from '@/Primitive'
const props = defineProps<ComboboxEmptyProps>()
const rootContext = injectComboboxRootContext()
const isRender = computed(() => rootContext.ignoreFilter.value ? true : rootContext.filterState.filtered.count === 0)
const isRender = computed(() => rootContext.ignoreFilter.value ? rootContext.allItems.value.size === 0 : rootContext.filterState.filtered.count === 0)
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ useResizeObserver(content, () => {
}
})
useResizeObserver([globalThis.document.body, rootNavigationMenu], () => {
useResizeObserver([globalThis.document?.body, rootNavigationMenu], () => {
updatePosition()
})
</script>
Expand Down

0 comments on commit 82505dc

Please # to comment.