You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a shiny app to edit tables of a variable number of samples, where for each sample I have to select one of several possible values. Up to now, I have been able to use sapply to create a selectInput() per sample, and similarly to create all corresponding observeEvent() using a second sapply. However, this has suddenly stopped working, see reprex above.
EDITS:
As tested in my comment below, the issue is not the interaction between selectInput and multiple observeEvent instances generated through sapply (which works), but between selectInput and renderDataTable.
I can now confirm that this is a recently introduced issue: downgrading to shiny_1.7.5 and DT_0.29 removes the issue - I have not investigated further.
The text was updated successfully, but these errors were encountered:
Arthfael
changed the title
selectInput not working anymore within sapply
selectInput not working anymore within renderDataTable
Jan 9, 2024
Arthfael
changed the title
selectInput not working anymore within renderDataTable
selectInput not working anymore within renderDataTable in 1.8.0
Jan 9, 2024
See #3979
There are two options: either you set selectize=FALSE in selectInput. Or if you want to use selectize, you have to get and include the HTML dependency and to initialise the select inputs - see the above linked issue.
System details
Browser Version:
Output of
sessionInfo()
:Example application or steps to reproduce the problem
Describe the problem in detail
I am using a shiny app to edit tables of a variable number of samples, where for each sample I have to select one of several possible values. Up to now, I have been able to use sapply to create a selectInput() per sample, and similarly to create all corresponding observeEvent() using a second sapply. However, this has suddenly stopped working, see reprex above.
EDITS:
The text was updated successfully, but these errors were encountered: