ycs77 / headlessui-float

Easily use Headless UI with Floating UI to position floating elements.
https://headlessui-float.vercel.app
MIT License
344 stars 11 forks source link

Setting PopoverButton :as="Component" breaks Float vue component #31

Closed AnnaYuS closed 1 year ago

AnnaYuS commented 1 year ago

Use Version Use version when bugs appear:

Describe the bug https://stackblitz.com/edit/github-vfx4en-nz2iba?file=src/components/ExamplePopover.vue

If you remove :as="HeroiconsOutlineMenuAlt2" and use the HeroiconsOutlineMenuAlt2 component inside PopoverButton everything works.

In our case we prefer rendering popover button as a custom button component. It would be nice to avoid rendering extra tag around the button.

AnnaYuS commented 1 year ago

This seems to be fixed in version ^0.10.0. So thanks i guess 🙂