Open xeinebiu opened 1 month ago
Removing the asChild
does fix the issue with the Avatar
<HStack>
<Spacer />
<Menu.Root>
<Menu.Trigger asChild> <-- Remove asChild
<Avatar name="Hello World" />
</Menu.Trigger>
<Menu.Positioner>
<Menu.Content>
<Menu.Item value="react">React</Menu.Item>
<Menu.Item value="solid">Solid</Menu.Item>
<Menu.Item value="vue">Vue</Menu.Item>
</Menu.Content>
</Menu.Positioner>
</Menu.Root>
</HStack>
Though I am not sure if this is intended or a bug.
Expected Behavior
It should work the same as when using a Button as trigger