Skip to content

Commit

Permalink
Merge pull request #1066 from cozy/field-number-type
Browse files Browse the repository at this point in the history
feat: Field can have number as type
  • Loading branch information
ptbrowne authored Jun 25, 2019
2 parents ccf677e + ffa731b commit a815139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react/Field/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const Field = props => {
case 'email':
case 'url':
case 'text':
case 'number':
return (
<Input
autoComplete={autoComplete}
Expand Down Expand Up @@ -208,7 +209,8 @@ Field.propTypes = {
'select',
'textarea',
'text',
'url'
'url',
'number'
]),
// value should be an object for type=select and string for others
value: function(props, propName, componentName) {
Expand Down

0 comments on commit a815139

Please sign in to comment.