Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 61db46e

Browse files
author
Kent C. Dodds
committed
Merge pull request #557 from brabeji/patch-2
Fix validation messages when comparing falsy value
2 parents e0a82a2 + bc59bba commit 61db46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/formlyValidationMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function formlyValidationMessages() {
2323

2424
function templateOptionValue(prop, prefix, suffix, alternate) {
2525
return function getValidationMessage(viewValue, modelValue, scope) {
26-
if (scope.options.templateOptions[prop]) {
26+
if (typeof scope.options.templateOptions[prop] !== 'undefined') {
2727
return `${prefix} ${scope.options.templateOptions[prop]} ${suffix}`
2828
} else {
2929
return alternate

0 commit comments

Comments
 (0)