Using Next.js, a hydration error is given when using the library. A part of the error:
Warning: Prop `style` did not match. Server: "position:absolute;z-index:9999;top:0;left:0;right:auto;bottom:auto;transform:translate(0px,0px)" Client: "position:absolute;z-index:9999;top:0;left:0;right:auto;bottom:auto;transform:translate(0px,0px);width:"
at div
at span
at eval
...
The width style is now set to undefined so client hydration matches server. This resolves the error in Next.js.
Also, love the library! It has saved me a bunch of time setting up Headless UI / Floating UI.
Using Next.js, a hydration error is given when using the library. A part of the error:
The width style is now set to
undefined
so client hydration matches server. This resolves the error in Next.js.Also, love the library! It has saved me a bunch of time setting up Headless UI / Floating UI.