Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #515 from sidneycorreia/master
Browse files Browse the repository at this point in the history
Add defaultValue property on Form.Input component
  • Loading branch information
jonthomp committed Feb 22, 2021
2 parents 395cfb3 + 16694cd commit 8edf961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Form/FormInput.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type FormStyle = {|
+placeholder?: string,
+name?: string,
+value?: string | number,
+defaultValue?: string | number,
+min?: string | number,
+max?: string | number,
+minLength?: string | number,
Expand Down Expand Up @@ -73,6 +74,7 @@ function FormInput(props: Props): React.Node {
error,
placeholder,
value,
defaultValue,
min,
max,
minLength,
Expand Down Expand Up @@ -120,6 +122,7 @@ function FormInput(props: Props): React.Node {
type,
placeholder,
value,
defaultValue,
min,
max,
minLength,
Expand Down

0 comments on commit 8edf961

Please sign in to comment.