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

Fix revalidate for directive #152

Merged
merged 1 commit into from
Apr 18, 2017
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
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