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

Commit

Permalink
Fix issue #76 - problem with ui-mask
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 25, 2015
1 parent 1b74d9e commit 4e093a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
function blurHandler(event) {
// get the form element custom object and use it after
var formElmObj = commonObj.getFormElementByName(ctrl.$name);
var value = (typeof event.target.value !== "undefined") ? event.target.value : ctrl.$modelValue;
var value = (typeof ctrl.$modelValue !== "undefined") ? ctrl.$modelValue : event.target.value;

if (!formElmObj.isValidationCancelled) {
attemptToValidate(value, 10);
Expand Down

0 comments on commit 4e093a7

Please sign in to comment.