-
Notifications
You must be signed in to change notification settings - Fork 153
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
virtualSelectInput and updateVirtualSelect - selected arg not working for named lists #660
Comments
I managed to get it working with the modified code below. It only works if you unname() the "selected" argument. Running unname() works on both named and unnamed lists so should be an easy fix. Just submitted a pull request.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When initializing or updating a virtualSelectInput with multiple = TRUE, I am unable to pass a named list to the selected argument.
The choices argument works properly (initially and on update), but the input renders with no options selected (though I pass in the identical named list as the choices argument)
Here is my code, you can see I change the subset passed to choices to make sure it's updating. However, the input initializes with no options selected. I tried using named lists instead of vectors as well to no avail.
The text was updated successfully, but these errors were encountered: