From 5798a7f7b86caea34fd8c487cd687c66700f39de Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Fri, 22 May 2020 17:35:57 +0200 Subject: [PATCH] fix: keep the already set input error classes - closes #12081 --- js/foundation.abide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/foundation.abide.js b/js/foundation.abide.js index a9544fcce..ae4fb5cc8 100644 --- a/js/foundation.abide.js +++ b/js/foundation.abide.js @@ -498,10 +498,10 @@ class Abide extends Plugin { } if (manageErrorClasses) { - this.removeErrorClasses($el); - if (!goodToGo) { this.addErrorClasses($el, failedValidators); + } else { + this.removeErrorClasses($el); } } -- 2.47.2