Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{shiny} binds any checkbox input with an id #165

Open
nteetor opened this issue Aug 28, 2019 · 1 comment
Open

{shiny} binds any checkbox input with an id #165

nteetor opened this issue Aug 28, 2019 · 1 comment
Labels

Comments

@nteetor
Copy link
Owner

nteetor commented Aug 28, 2019

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 nteetor changed the title Shiny binds any checkbox input with an id {shiny} binds any checkbox input with an id Aug 28, 2019
@nteetor
Copy link
Owner Author

nteetor commented Mar 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant