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
The issue of setting updateSelectInput's selected parameter to null #4048
Comments
For the first part (setting the selected parameter to
This is, in fact, not a bug. For what regards setting the selected argument to You can check that it succesfully updates the input by putting the print statement in an observe like this:
|
Thanks for the thoughtful reply @scal-o! |
@scal-o Thanks for your explanation, it helped me a lot! |
Example application
I noticed that the value of selectInput changed strangely when the selected parameter of updateSelectInput was set to null, so I thought it might be a bug.
For example, when I clicked the actionButton to set the updateSelectInput parameter to selected = NULL, I found that no matter how many times I clicked, the value of input$select did not change, just the UI widget selection was cleared.
As another example, when I click the actionButton to set the updateSelectInput parameter selected = "" or character(0), I found that the value of input$select did not change for the first click, but for the second click, The value of input$select becomes NULL, as I expected.
System details
Output of
sessionInfo()
:Tasks
The text was updated successfully, but these errors were encountered: