Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #152 from jsolt/master
Browse files Browse the repository at this point in the history
Fix #150 revalidate for directive
  • Loading branch information
ghiscoding authored Apr 18, 2017
2 parents 84607ca + 8f5ebf0 commit dd988fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validation-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
ctrl.revalidateCalled = true;
var value = ctrl.$modelValue;

if (!!elm && elm.hasOwnProperty("isValidationCancelled")) {
var formElmObj = commonObj.getFormElementByName(ctrl.$name);
if (!!formElmObj && formElmObj.hasOwnProperty("isValidationCancelled")) {
// attempt to validate & run validation callback if user requested it
var validationPromise = attemptToValidate(value);
if(!!_validationCallback) {
Expand Down

0 comments on commit dd988fd

Please sign in to comment.