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
Sorry to bug you again, but I think I ran into a bug? See the code below:
library(shiny)
library(shinyjs)
ui <- fluidPage(
useShinyjs(),
sidebarLayout(
sidebarPanel(
checkboxGroupInput("Marital", label = h4("Marital Status"),
choices = c("Married/Living common-law",
"Single (not in a relationship)",
"In relationship, but not living together",
"Prefer not to answer"),
selected = c("Married/Living common-law",
"Single (not in a relationship)",
"In relationship, but not living together",
"Prefer not to answer")),
actionButton("Reset", "Reset", icon("repeat"), class = "btn-primary")
),
mainPanel()
)
)
server <- function(input, output) {
observeEvent(input$Reset, {
reset("Marital")
})
}
shinyApp(ui = ui, server = server)
On my end, when I click on the reset button, the "In relationship, but not living together" option gets deselected. It seems that the issue goes away if you remove the comma inside the text.
The text was updated successfully, but these errors were encountered:
Hi Dean,
Sorry to bug you again, but I think I ran into a bug? See the code below:
On my end, when I click on the reset button, the "In relationship, but not living together" option gets deselected. It seems that the issue goes away if you remove the comma inside the text.
The text was updated successfully, but these errors were encountered: