yonder icon indicating copy to clipboard operation
yonder copied to clipboard

{shiny} binds any checkbox input with an id

Open nteetor opened this issue 6 years ago • 1 comments

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.

nteetor avatar Aug 28 '19 09:08 nteetor

A related issue has been raised, see rstudio/shiny#2779.

nteetor avatar Mar 04 '20 16:03 nteetor