ycs77 / headlessui-float

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

Page scroll up when open first #118

Open vinnygambiny opened 3 weeks ago

vinnygambiny commented 3 weeks ago

Use Version Use version when bugs appear:

Describe the bug When I click on the ComboboxButton, the page scroll up. Only happen on the first click. It's don't scroll up completly, but we don't see the ComboboxOptions.

To Reproduce

Wrap the Combobox with the Float. Add some space to add scroll. On first click on ComboboxButton, the page scroll

Expected behavior The page don't move

ycs77 commented 2 weeks ago

Hi, please provide a minimal reproducible example (like github repo, codesandbox, stackblitz...), it is recommended to fork the Headless UI Flaot's Online Demo to reproduce.