Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/validation-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,10 @@ angular
// invalid & isDirty, display the error message... if <span> not exist then create it, else udpate the <span> text
if (!_globalOptions.hideErrorUnderInputs && !!attrs && !attrs.isValid && (isSubmitted || self.ctrl.$dirty || self.ctrl.$touched || self.ctrl.revalidateCalled)) {
(errorElm.length > 0) ? errorElm.html(errorMsg) : elm.after('<div class="validation validation-' + elmInputName + ' text-danger">' + errorMsg + '</div>');
self.ctrl.errorMessageVisible = true;
} else {
errorElm.html(''); // element is pristine or no validation applied, error message has to be blank
self.ctrl.errorMessageVisible = undefined;
}
}

Expand Down Expand Up @@ -1442,4 +1444,4 @@ angular
return {};
}

}]); // validationCommon service
}]); // validationCommon service