From 2f91f5f752522d35b252ea697310c09b2c1b275d Mon Sep 17 00:00:00 2001 From: Kenneth Chang Date: Wed, 4 Jun 2014 12:12:27 -0700 Subject: [PATCH] AUI-1378 Fix error validation message on radio button field --- src/aui-form-validator/js/aui-form-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui-form-validator/js/aui-form-validator.js b/src/aui-form-validator/js/aui-form-validator.js index cb822347675..738660dec8f 100644 --- a/src/aui-form-validator/js/aui-form-validator.js +++ b/src/aui-form-validator/js/aui-form-validator.js @@ -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; } }