daattali / shinywc

1 stars 1 forks source link

Bug: component cannot be rendered from a `insertUI` #16

Open daattali opened 3 years ago

daattali commented 3 years ago

Blocked by https://github.com/rstudio/shiny/issues/1545

daattali commented 3 years ago

If it MUST be fixed, a hacky workaround is to change htmltools::tags$script(paste0("shinywcInputKnob.checkInit('", id, "')")) to htmltools::tags$head(htmltools::tags$script(paste0("setTimeout(function(){shinywcInputKnob.checkInit('", id, "')},0)"))) but I would much prefer to stay away from doing that for all other cases that don't involve insertUI() and hopefully this will be fixed in shiny soon

daattali commented 2 years ago

Update: this is fixed in shiny 1.7.2