Closed TheRealFlyingCoder closed 1 year ago
Hi @TheRealFlyingCoder, I can't reproduce this bug, please provide a minimally reproducible repo using GitHub or stackblitz, Online demo provided the <Float>
stackblitz examples.
Hi @TheRealFlyingCoder, I can't reproduce this bug, please provide a minimally reproducible repo using GitHub or stackblitz, Online demo provided the
<Float>
stackblitz examples.
Weird, let me debug it a bit more and i'll get back to you with an example!
@ycs77 I should have picked this up straight away before raising the ticket:
floatingAs={Fragment}
That was the problem ^ switching to a div solved it
Use Version @headlessui-float/react: "^0.11.0",
Describe the bug When using the following popover setup, the package is rendering React.Fragment elements, and attempting to pass styles to them leading to console warnings:
Warning: Invalid prop
stylesupplied to
React.Fragment. React.Fragment can only have
keyand
childrenprops.