fix(ui): provide default injection value for 'popover' to eliminate error messages

This commit is contained in:
upsiflu 2024-12-14 15:27:48 +01:00
parent 3ad476fdfa
commit db197c24aa
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ const position = computed(() => {
})
// Popover close stack
let stack = inject(POPOVER_INJECTION_KEY)
let stack = inject(POPOVER_INJECTION_KEY, [ref(false)])
if (!stack) {
provide(POPOVER_INJECTION_KEY, stack = shallowReactive([]))
}