accept bool as toolTip type

This commit is contained in:
Ben Wheeler 2019-08-21 17:19:05 +02:00
parent de5297bf9a
commit 425675e760

View file

@ -55,7 +55,8 @@ FormikInput.propTypes = {
className: PropTypes.string,
error: PropTypes.string,
onSetRef: PropTypes.func,
toolTip: PropTypes.string,
// toolTip can be false, in which case we ignore it
toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
type: PropTypes.string,
validationClassName: PropTypes.string,
wrapperClassName: PropTypes.string