Timers aren't connected to JS scripts when generated programatically in Shiny #59
Labels
priority: high
High priority
status: planned
Planning to implement
type: new
New feature or enhancement
I am trying to write a Shiny app that allows users to create multiple timers with labels (and some other controls). The plan is to allow them to create an arbitrary number of timers, so I was trying to use
renderUI
to generate the timers. They render correctly, but they do not respond to controls. Looking at the inspect tools in the browser, it appears that this is because the newly created timers are not registered with the correct triggers for the javascript controls.If I load a timer using the
hidden
function fromshinyjs
, it loads correctly. I am going to try this work around, but it makes the controls a fair bit more cumbersome.If someone can point me to where the triggers are registered, I would be happy to take a stab at a fix here. I just haven't done enough in that area to track down the code that I need to dig into.
Reproducible example:
The text was updated successfully, but these errors were encountered: