From fa9d0f058ac624bf82700f03b554569dab59d9f1 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Fri, 21 Oct 2022 09:00:05 -0400 Subject: [PATCH] [Form.js] No required min/max for numeric elements Input elements should not require a min and a max. They may not be required (or known) and aren't necessary for the underlying element. --- jsx/Form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsx/Form.js b/jsx/Form.js index 4db98d98316..9bde5c8a1a9 100644 --- a/jsx/Form.js +++ b/jsx/Form.js @@ -1839,8 +1839,8 @@ class NumericElement extends Component { NumericElement.propTypes = { name: PropTypes.string.isRequired, - min: PropTypes.number.isRequired, - max: PropTypes.number.isRequired, + min: PropTypes.number, + max: PropTypes.number, label: PropTypes.string, value: PropTypes.string, id: PropTypes.string,