-
Has anyone been able to implement this with headlessui/listbox? I've bee trying for a while and have not been able to get it to work. Here I have an example of their infinite scroll works when you initially open the listbox but breaks after closing it. Any pointers would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
piecyk
Mar 12, 2023
Replies: 1 comment 2 replies
-
@lvegerano issue here is that the scroll element changes as the Options unmounts, one option would be to store the scroll element on state, something like https://stackblitz.com/edit/github-sizhvg-gxxtjm |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lvegerano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lvegerano issue here is that the scroll element changes as the Options unmounts, one option would be to store the scroll element on state, something like https://stackblitz.com/edit/github-sizhvg-gxxtjm