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

v6.2.2 fixes abide radio check if only one radio is required #8783

Merged
merged 1 commit into from
May 13, 2016

Conversation

designerno1
Copy link
Contributor

fixes bug when only one radio has required and adds a visual test for that

according to docs from jQuery http://api.jquery.com/attr/
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

// .attr() returns undefined if no elements in $group have the attribute "required"
if ($group.attr('required') === undefined) {
  valid = true;
}

@kball
Copy link
Contributor

kball commented May 13, 2016

👍

@kball kball merged commit 5a7686d into foundation:v6.2.2 May 13, 2016
@designerno1 designerno1 deleted the v6.2.2-abide-radio-fix branch May 13, 2016 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants