Skip to content

Popover content invisible with async svelte #1881

@dylan1951

Description

@dylan1951

Describe the bug

Popover content is not visible in an async component under certain conditions.

  --bits-floating-transform-origin: undefined undefined;
  --bits-floating-available-width: undefinedpx;
  --bits-floating-available-height: undefinedpx;
  --bits-floating-anchor-width: undefinedpx;
  --bits-floating-anchor-height: undefinedpx;

I opened an issue in the svelte repo and I was told to open one here instead.

Reproduction

REPL

<script>
    import { Popover } from "bits-ui";

    let value = $state();

    let foo = $derived(await value);
</script>

<input bind:value />

<Popover.Root>
    <Popover.Trigger>Open Popover</Popover.Trigger>
    <Popover.Content>
		<p>Popover Content</p>
    </Popover.Content>
</Popover.Root>

{#if value}
    <p>lol</p>
{/if}

Logs

System Info

svelte playground

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageA maintainer needs to review this issue and label it appropriately

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions