diff --git a/packages/frameworks/svelte/src/portal.ts b/packages/frameworks/svelte/src/portal.ts index 40dc1ce864..a0e15a48fe 100644 --- a/packages/frameworks/svelte/src/portal.ts +++ b/packages/frameworks/svelte/src/portal.ts @@ -5,7 +5,7 @@ export interface PortalActionProps { } export function portal(node: HTMLElement, props: PortalActionProps = {}) { - function update(props: PortalActionProps) { + function update(props: PortalActionProps = {}) { const { container, disabled, getRootNode } = props if (disabled) return const doc = getRootNode?.().ownerDocument ?? document