Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SelectionButtons live selector, for JS/AJAX content
Some GOV.UK pages, like Smart Answers, load content via JS, including radio buttons or checkboxes. These will be added to the DOM after the selector is run and the resulting elements are passed to SelectionButtons SelectionButtons can also take a string selector and use document events (alphagov/govuk_frontend_toolkit#139) so use that and any JS loaded content will get the behaviour too.
- Loading branch information