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

Commit 4e093a7

Browse files
committed
Fix issue #76 - problem with ui-mask
1 parent 1b74d9e commit 4e093a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
function blurHandler(event) {
249249
// get the form element custom object and use it after
250250
var formElmObj = commonObj.getFormElementByName(ctrl.$name);
251-
var value = (typeof event.target.value !== "undefined") ? event.target.value : ctrl.$modelValue;
251+
var value = (typeof ctrl.$modelValue !== "undefined") ? ctrl.$modelValue : event.target.value;
252252

253253
if (!formElmObj.isValidationCancelled) {
254254
attemptToValidate(value, 10);

0 commit comments

Comments
 (0)