Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix radio show/hide behaviour outside a form (#375)
The show/hide JS assumes radio buttons are inside a form, as the default behaviour of radio buttons is to scope their name to the nearest enclosing form. If they’re outside a form the JS fails. We can alter it to just select every applicable radio on the page in the absence of a form ancestor. Adding tests for this involved quite a bit of rework as it turns out that Jasmine will just run every beforeEach() in order rather than letting beforeEach()s lower in scope override the parents.
- Loading branch information