Skip to content

Commit d2f6d9f

Browse files
authored
Merge pull request #24 from dmblack/bugfix_issue-23
fix #23 - default valid state without validation
2 parents 4043688 + bf36979 commit d2f6d9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Input extends Component {
99
hasChanged: false,
1010
hasFocus: false,
1111
id: this.props.identifier || undefined,
12-
isValid: false,
12+
isValid: this.props.validation ? false : true,
1313
justChanged: false,
1414
value: this.props.value || "",
1515
valueMask: this.props.valueMask || undefined

0 commit comments

Comments
 (0)