Skip to content

Commit

Permalink
Support for HTML5 number input (dfee#40)
Browse files Browse the repository at this point in the history
* Support for HTML5 number input

the number input should be supported as it queues mobile devices to present a number keyboard when its specified.
Bulma supports this type of input (which ends up being just a specialized text input)

* fix tests 1
  • Loading branch information
jdmg94 authored and couds committed Jun 9, 2018
1 parent eb6d991 commit 69c8ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Input extends PureComponent {
static propTypes = {
className: PropTypes.string,
style: PropTypes.shape({}),
type: PropTypes.oneOf(['text', 'email', 'tel', 'password']),
type: PropTypes.oneOf(['text', 'email', 'tel', 'password', 'number']),
size: PropTypes.oneOf(['small', 'medium', 'large']),
color: PropTypes.oneOf(colors),
readOnly: PropTypes.bool,
Expand Down

0 comments on commit 69c8ede

Please sign in to comment.