{"action":"closed","issue":{"url":"https://api.github.com/repos/daattali/shinyjs/issues/130","repository_url":"https://api.github.com/repos/daattali/shinyjs","labels_url":"https://api.github.com/repos/daattali/shinyjs/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/daattali/shinyjs/issues/130/comments","events_url":"https://api.github.com/repos/daattali/shinyjs/issues/130/events","html_url":"https://github.com/daattali/shinyjs/issues/130","id":235032412,"number":130,"title":"Bug? Comma inside text in the input choice seems to force reset to deselect the choice.","user":{"login":"philstraforelli","id":22040238,"avatar_url":"https://avatars3.githubusercontent.com/u/22040238?v=3","gravatar_id":"","url":"https://api.github.com/users/philstraforelli","html_url":"https://github.com/philstraforelli","followers_url":"https://api.github.com/users/philstraforelli/followers","following_url":"https://api.github.com/users/philstraforelli/following{/other_user}","gists_url":"https://api.github.com/users/philstraforelli/gists{/gist_id}","starred_url":"https://api.github.com/users/philstraforelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philstraforelli/subscriptions","organizations_url":"https://api.github.com/users/philstraforelli/orgs","repos_url":"https://api.github.com/users/philstraforelli/repos","events_url":"https://api.github.com/users/philstraforelli/events{/privacy}","received_events_url":"https://api.github.com/users/philstraforelli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-10T23:17:57Z","updated_at":"2017-06-11T00:55:48Z","closed_at":"2017-06-11T00:55:48Z","body":"Hi Dean,\r\n\r\nSorry to bug you again, but I think I ran into a bug? See the code below:\r\n\r\n     library(shiny)\r\n     library(shinyjs)\r\n\r\n     ui <- fluidPage(\r\n\t     useShinyjs(),\r\n     \tsidebarLayout(\r\n\t     \tsidebarPanel(\r\n\t\t     \tcheckboxGroupInput(\"Marital\", label = h4(\"Marital Status\"), \r\n\t\t     \t\tchoices = c(\"Married/Living common-law\", \r\n\t\t\t     \t\t\"Single (not in a relationship)\", \r\n\t\t\t\t     \t\"In relationship, but not living together\", \r\n\t\t\t     \t\t\"Prefer not to answer\"), \r\n\t\t\t     \tselected = c(\"Married/Living common-law\", \r\n\t\t     \t\t\t\"Single (not in a relationship)\", \r\n\t\t\t\t     \t\"In relationship, but not living together\", \r\n\t\t\t\t     \t\"Prefer not to answer\")),\r\n\t\t\t     actionButton(\"Reset\", \"Reset\", icon(\"repeat\"), class = \"btn-primary\")\r\n\t     \t),\r\n\t     \tmainPanel()\r\n\t     )\r\n     )\r\n\r\n     server <- function(input, output) {\r\n\t     observeEvent(input$Reset, {\r\n\t     \treset(\"Marital\") \r\n\t     })\r\n     }\r\n\r\n     shinyApp(ui = ui, server = server)\r\n\r\nOn 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."}}
{"actor":{"display_login":"daattali"}}