From c239b1b268d419ba0c7089908dd6b74c9291c88d Mon Sep 17 00:00:00 2001 From: Fritz van Deventer Date: Tue, 9 Oct 2018 13:53:40 +0200 Subject: [PATCH] add `time` as possible type for Input (#92) I was trying to use the time input like described [here (on MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time) but it gave me errors. --- 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 ca1fe711..316623ed 100644 --- a/src/components/form/components/input.js +++ b/src/components/form/components/input.js @@ -42,7 +42,7 @@ Input.propTypes = { ...modifiers.propTypes, className: PropTypes.string, style: PropTypes.shape({}), - type: PropTypes.oneOf(['text', 'email', 'tel', 'password', 'number', 'search', 'color', 'date']), + type: PropTypes.oneOf(['text', 'email', 'tel', 'password', 'number', 'search', 'color', 'date', 'time']), size: PropTypes.oneOf(['small', 'medium', 'large']), color: PropTypes.oneOf(colors), readOnly: PropTypes.bool,