var parentElement = _getClosestParentByClass(element, useBootstrap3Stlying? 'form-group': 'error-label-container');
Seems like if it is not using bootstrap styling, it tries to find a error parent element with the class error-label-container (which does not exist) and never remove the error message for that input.
Seems like if it is not using bootstrap styling, it tries to find a error parent element with the class
error-label-container
(which does not exist) and never remove the error message for that input.