mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 05:37:56 +01:00
HTMLElement is not defined
This commit is contained in:
@@ -6,7 +6,7 @@ export function usePortal(portal: Ref<string | HTMLElement | boolean | undefined
|
|||||||
const portalTarget = inject(portalTargetInjectionKey, undefined)
|
const portalTarget = inject(portalTargetInjectionKey, undefined)
|
||||||
|
|
||||||
const to = computed(() => {
|
const to = computed(() => {
|
||||||
if (typeof portal.value === 'string' || portal.value instanceof HTMLElement) {
|
if (typeof portal.value === 'string' || portal.value) {
|
||||||
return portal.value
|
return portal.value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user