Warning: Prop `style` did not match. Server: "position:fixed;z-index:9999;top:0;left:0;right:auto;bottom:auto;transform:translate(0px,0px)" Client: "position:fixed;z-index:9999;top:0;left:0;right:auto;bottom:auto;transform:translate(0px,0px);width:"
at div
at div
at eval
...
Use Version Use version when bugs appear:
Describe the bug
In Next.js, usage of
<Float />
creates an SSR issue due to a blankwidth
attribute in the initial styles.This is fixed by https://github.com/ycs77/headlessui-float/pull/44
To Reproduce
git clone https://github.com/doseofted/headlessui-float-issue.git
npm install
npm run dev
Logs