[DependsOn] fix clearValidity for standalone fields
/**
* @author Alexey Stsefanovich (ala'n), Bernatskaya Yana (YanaBr)
- * @version 2.2.0
+ * @version 2.2.1
*
* DependsOn ElementAccessors Registry
* */
const FIELD_LABEL = '.coral-Form-fieldlabel';
const FIELD_WRAPPER = '.coral-Form-fieldwrapper';
+ const SUBMITTABLES = ':-foundation-submittable';
const accessorsList = [];
const DEFAULT_ACCESSOR = {
* @param {JQuery} $el - target element
* */
static clearValidity($el) {
- $el.find(':-foundation-submittable').trigger('foundation-validation-valid');
+ $el.find(SUBMITTABLES).addBack(SUBMITTABLES).trigger('foundation-validation-valid');
}
/**
