Closed vbarcellos closed 4 years ago
Right now the 'required' prop is just a boolean, but it would be nice to have it accept a function just like the 'disabled' prop so we can make conditional requirements
Current:
FormInput.propTypes = { required: PropTypes.bool, disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), };
Proposed:
FormInput.propTypes = { required: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), };
Fixed on v0.19.0
Right now the 'required' prop is just a boolean, but it would be nice to have it accept a function just like the 'disabled' prop so we can make conditional requirements
Current:
Proposed: