Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 01476ff

Browse files
committed
HTML validation in LocalForm fixed. Fixes #734
1 parent 4066a50 commit 01476ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/control-component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function createControlClass(s = defaultStrategy) {
247247
fieldValue,
248248
} = this.props;
249249

250-
if (!validators && !errors) return false;
250+
if (!validators && !errors && !this.willValidate) return false;
251251

252252
const nodeErrors = this.getNodeErrors();
253253

@@ -560,6 +560,8 @@ function createControlClass(s = defaultStrategy) {
560560
const node = findDOMNode && findDOMNode(this);
561561

562562
if (node) this.node = node;
563+
564+
this.willValidate = node.willValidate;
563565
}
564566

565567
validate(options) {

0 commit comments

Comments
 (0)