var goodToGo = [clearRequire, validated, customValidator, equalTo].indexOf(false) === -1;
var message = (goodToGo ? 'valid' : 'invalid') + '.zf.abide';
+ if (goodToGo) {
+ // Re-validate inputs that depend on this one with equalto
+ const dependentElements = this.$element.find(`[data-equalto="${$el.attr('id')}"]`);
+ if (dependentElements.length) {
+ let _this = this;
+ dependentElements.each(function() {
+ if ($(this).val()) {
+ _this.validateInput($(this));
+ }
+ });
+ }
+ }
+
this[goodToGo ? 'removeErrorClasses' : 'addErrorClasses']($el);
/**