-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash in Combobox
component when in virtual
mode when options are empty
#3356
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Combobox
component when in virtual mode without available optionsCombobox
component when in virtual
mode when options are empty
dc80642
to
eec1861
Compare
I wasn't able to repro this originally but based on the fix in tanstack it was timing related so I think this is fine to merge 👍 |
I could reproduce it locally a few times, but not consistently. However when I switch to the fixed branch (this one) I couldn't reproduce it anymore. When I switch back and try a few times I could reproduce it again. |
thank you so much @RobinMalfait! |
This PR fixes an issue where using
@tanstack/react-virtual
with an empty array could lead to crashes such as:Providing an empty array can happen if you filter the options based on the value of the
ComboboxInput
.This PR fixes that by bumping the
@tanstack/react-virtual
library and using theenabled
value and disable it when no options are given.Fixes: #3353