yonder
yonder copied to clipboard
{shiny} binds any checkbox input with an id
I noticed the input[type="checkbox"] elements within checkbox inputs were also getting bound as reactive inputs. This is because shiny uses a rather generic selector to find its own checkbox inputs.
https://github.com/rstudio/shiny/blob/d9478142b116ea14b4f50701c8d28e9558d957ed/srcjs/input_binding_checkbox.js#L3-L5
There is probably a data-id workaround. The checkbox elements in question are intentionally given an id attribute for accessibility reasons.
A related issue has been raised, see rstudio/shiny#2779.