Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 34fe2ac

Browse files
committed
revert(portal): back to h
1 parent 7f38649 commit 34fe2ac

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

packages/c-portal/src/portal.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,18 @@ const CPortal = defineComponent({
6060

6161
useStackProvider()
6262

63-
return () => (
64-
<Teleport {...{ ...props, ...attrs }} to={target.value}>
65-
{() => getValidChildren(slots)}
66-
</Teleport>
67-
)
63+
return () => {
64+
return h(
65+
// @ts-ignore
66+
Teleport,
67+
{
68+
...props,
69+
...attrs,
70+
to: target.value,
71+
},
72+
slots
73+
)
74+
}
6875
},
6976
})
7077

0 commit comments

Comments
 (0)