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

Commit 134accc

Browse files
committed
Update src/validation-directive.js
Fix to properly negate expression.
1 parent b249f4a commit 134accc

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
@@ -179,7 +179,7 @@
179179
}
180180

181181
// invalidate field before doing any validation
182-
if((value !== "" || value !== null || typeof value !== "undefined") || commonObj.isFieldRequired() || _validateOnEmpty) {
182+
if((value !== "" && value !== null && typeof value !== "undefined") || commonObj.isFieldRequired() || _validateOnEmpty) {
183183
ctrl.$setValidity('validation', false);
184184
}
185185

0 commit comments

Comments
 (0)