Skip to content

Commit f1ba9d4

Browse files
committed
Revert "fix: show the default validation message when there is a required error (christianalfoni#386)"
This reverts commit ac301f8.
1 parent 57f97cb commit f1ba9d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ module.exports = {
166166
return this.state._isRequired;
167167
},
168168
showError: function () {
169-
return this.showRequired() && !this.isValid();
169+
return !this.showRequired() && !this.isValid();
170170
},
171171
isValidValue: function (value) {
172172
return this.context.formsy.isValidValue.call(null, this, value);

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ Formsy.Form = React.createClass({
278278
}
279279

280280
if (isRequired) {
281-
var error = validationErrors[requiredResults.success[0]] || validationError;
281+
var error = validationErrors[requiredResults.success[0]];
282282
return error ? [error] : null;
283283
}
284284

0 commit comments

Comments
 (0)