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

Examples from vue-ts is not working #42

Closed grasulkhuja closed 1 year ago

grasulkhuja commented 1 year ago

Versions

Describe the bug Examples from vue-ts not working for combobox.

To Reproduce Please provide a minimal reproducible example (like github repo, codesandbox, stackblitz...), and steps to reproduce the behavior:

  1. Go to Stackblitz
  2. Scroll down to combobox example

Expected behavior In listbox select component 'float ui' working works as it should, however same thing doesn't work autocomplete (Combobox options always appears below).

ycs77 commented 1 year ago

Hi @grasulkhuja, I think this is not a bug😅, because the <Listbox> has set the flip prop and <Combobox> no setting. Of course, this can be misleading, I will refactor the examples later when I have time.

Also, you can set it if you want to use <Combobox> with flip, usage see: https://headlessui-float.vercel.app/vue/floatingui-options.html#flip