mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +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 to = computed(() => {
|
||||
if (typeof portal.value === 'string' || portal.value instanceof HTMLElement) {
|
||||
if (typeof portal.value === 'string' || portal.value) {
|
||||
return portal.value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user