daattali/colourpicker

Alpha feature bug: when using shinyjs::reset() on a colour input since the alpha feature, it breaks

daattali opened this issue · 1 comments

library(shiny)
ui<-fluidPage(shinyjs::useShinyjs(),
  colourpicker::colourInput("col", "colour", "#abde",allowOpacity = TRUE),
  actionButton("btn", "go")
)
server<-function(input,output,session){
  observeEvent(input$btn, {
    shinyjs::reset("col")
  })
}
shinyApp(ui,server)