Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: popover fails to open on avatar in fallback mode - vite, react #605

Open
luiz00martins opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@luiz00martins
Copy link

Description

The Popover.Content will fail to open when the Popover.Trigger is an Avatar without any src prop (i.e. is relying on fallback).

To Reproduce

Use the reproduction repo: https://github.com/luiz00martins/popover-avatar-bug

Alternatively

  • Create a new React project (e.g. bun create vite popover-avatar-bug)
  • Add the following code to a page:
<Popover.Root>
  <Popover.Trigger>
    <Avatar
      fallback="A"
    />
  </Popover.Trigger>
  <Popover.Content>
    <Text>Popover</Text>
  </Popover.Content>
</Popover.Root>

The popover will fail to open.

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant