NYPD / ritsu.js

HTML form validation
MIT License
2 stars 0 forks source link

The _removeError() function seems like it does not remove errors from non bootstrap forms #69

Closed NYPD closed 7 years ago

NYPD commented 7 years ago
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.

NYPD commented 7 years ago

Fixed in a90ef89