Closed osdiab closed 3 weeks ago
OK, I actually looked at the source and see that it is using floating-ui
. I wonder if the website is just busted somehow that it isn't behaving as expected?
Oh, is it that it doesn't use floating
by default? OK, I think I get it now, I think just this page does a poor job of making the library seem robust then.
While I agree that this is unintuitive when looking at a popover like Radix, this is actually feature parity with the native popover api. This is the correct behavior. Floating examples are further below.
Qwik UI is the only library to my knowledge that offers this across browsers.
It looks like we need to improve the clarity surrounding this for sure though. PR's welcome.
I have been working on improving the popover / tests today.
I have made a PR to explain that better. Will merge shortly.
Merged. Closing
https://www.loom.com/share/6e0ffcb833d14f148650968ac8ec75c0
To me, it's table stakes for a library offering a popover to not look broken when you do common behaviors like scrolling; I expected the kind of robust behavior like what
floating-ui
or mature platforms like Radix (which also depends onfloating-ui
) provide.Perhaps my understanding of the point of this library is incorrect, but is it supposed to be a native replacement for something like those libraries/is there any interest for this library to potentially depend on more robust (and platform-agnostic) libraries like that? Thanks!