dreamRs / shinyWidgets

shinyWidgets : Extend widgets available in shiny
https://dreamrs.github.io/shinyWidgets/
GNU General Public License v3.0
826 stars 153 forks source link

UI bug (?) materialSwitch version > 0.8.0 #667

Open le-raman opened 7 months ago

le-raman commented 7 months ago

Hi devs,

My materialSwitches using shinyWidgets 0.7.x look like this:

image

However, in 0.8.x, they look like this:

image

Any idea what triggers this?

Thanks!

le-raman commented 7 months ago

Just to confirm, there is a similar issue with a minimal example, without custom css:

library("shiny")

ui <- fluidPage(
  shiny::HTML("<br><br>"),
  shinyWidgets::materialSwitch(
    "test",
    "test"
  )
)

server <- function(input, output, session) {
}

shinyApp(ui, server)
le-raman commented 7 months ago

I see the issue has been reported already here. I can confirm clearing the cache of the browser solved it. However, this might still be something to look in to, as I can't ask all users of the application to do the same thing.