RinteRface/bs4Dash

Namespace issue with customSwitch1

analytichealth opened this issue · 0 comments

Hi David, when using modules, how can we access the click of the light/dark switch in R?

I wrap all ids in ns(), but the id for the switch is not accessible.
Updating the id using javascript shinyjs::runjs(code = "document.getElementById('customSwitch1').id = 'my_namespace-customSwitch1';") doesn't fix it as there is another label tag that needs updating too.

Thanks