diff --git a/src/lib/components/Select.svelte b/src/lib/components/Select.svelte index b1b6a9ffa6..144bd30710 100644 --- a/src/lib/components/Select.svelte +++ b/src/lib/components/Select.svelte @@ -51,8 +51,7 @@ return next; }, - portal: null, - scrollAlignment: 'center' + portal: typeof document !== 'undefined' ? document.body : null }); $: selectedOption = options.find((o) => o.value === value);