alphagov / govuk_frontend_toolkit

❗️GOV.UK Frontend Toolkit is deprecated, and will only receive major bug fixes and security patches.
MIT License
403 stars 107 forks source link

Selection button JS should apply to body and handle delegated clicks #349

Closed robinwhittleton closed 7 years ago

robinwhittleton commented 7 years ago

Currently you need to re-run the code if you add or remove radios / checkboxes from the page. It’d be simpler and easier to delegate it against body.

robinwhittleton commented 7 years ago

Turns out it did this already – I updated the documentation in https://github.com/alphagov/govuk_frontend_toolkit/pull/350