From 69c8ede1d648e6693561a86e7d20d3d119a2b59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20David=20Mu=C3=B1oz?= Date: Sat, 9 Jun 2018 13:05:13 -0600 Subject: [PATCH] Support for HTML5 number input (#40) * 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 --- src/components/form/components/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/components/input.js b/src/components/form/components/input.js index d5578ae0..fc61178c 100644 --- a/src/components/form/components/input.js +++ b/src/components/form/components/input.js @@ -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,