Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
AUI-1378 Fix error validation message on radio button field
Browse files Browse the repository at this point in the history
  • Loading branch information
pure59 authored and Jonathan Mak committed Jun 18, 2014
1 parent 6982666 commit 2f91f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aui-form-validator/js/aui-form-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ var FormValidator = A.Component.create({
if (nextSibling && nextSibling.get('nodeType') === 3) {
ancestor = field.ancestor();

if (ancestor && ancestor.hasClass(instance.get(LABEL_CSS_CLASS))) {
if (ancestor && ancestor.hasClass(instance.get(LABEL_CSS_CLASS)) || ancestor.hasClass('radio'))) {
target = nextSibling;
}
}
Expand Down

0 comments on commit 2f91f5f

Please sign in to comment.