We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var errorElement = useBootstrap3Stlying ? _getClosestParentByClass(element, 'form-group') : element; var isInvalid = element.getAttribute('data-invalid') === 'true'; if (isInvalid) errorElement.classList.add('has-error'); else errorElement.classList.remove('has-error');
errorElement will be null therefore not be able read the property classList of null.
errorElement
classList
So basically if it can not find the form-group, use the element itself
The text was updated successfully, but these errors were encountered:
Closes #56
4250fb5
V1.1.1 (#59)
45637be
* Fixes #57 * Closes #56 * Updates package to 1.1.1 and grunt build
NYPD
No branches or pull requests
errorElement
will be null therefore not be able read the propertyclassList
of null.So basically if it can not find the form-group, use the element itself
The text was updated successfully, but these errors were encountered: