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

Hide events being emitter before each Show event #51

Closed igorvukic closed 1 year ago

igorvukic commented 1 year ago

Use Version Use version when bugs appear:

Describe the bug hide event is emitted before every show event

To Reproduce 1) Add @show and @hide events and console.log once they occur. You will notice that before each opening hide event is emitted

Screenshots image

Expected behavior hide event should be only emitted on closing and not before opening

igorvukic commented 1 year ago

Here is a screenshoot of event listeners: image

And link to stackblitz.

ycs77 commented 1 year ago

@igorvukic Thanks for the report~