Skip to content

Commit bf36979

Browse files
author
Dustyn Blackmore
committed
fix #23 - default valid state without validation
Default valid state now set to 'true' if no validation exists.
1 parent 4043688 commit bf36979

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)