fix(ui): provide default injection value for 'popover' to eliminate error messages
This commit is contained in:
parent
3ad476fdfa
commit
db197c24aa
|
@ -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([]))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue