Maintain scroll position and dynamically update the list of options #5204
Unanswered
sivasquared
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to dynamically update the list of options without forcing the dropdown to be in a loading state. I can get this to work, but the when the options are updated, the scroll position of the dropdown is reset to the default state (if the dropdown is open)
Is there a best practice for this use case?
My current thinking is that I should maintain the scroll position and refresh it once I update the list of options if the dropdown is open, but hoping there is a simpler solution.
Beta Was this translation helpful? Give feedback.
All reactions