LaunchPadLab / lp-components

Our Components
http://lp-components.herokuapp.com
MIT License
5 stars 1 forks source link

Omit label props before passing them to default InputError component #471

Closed chawes13 closed 2 years ago

chawes13 commented 3 years ago

When label is set to false and the input has an error, the following warning is logged

Warning: Received `false` for a non-boolean attribute `label`.

If you want to write it to the DOM, pass a string instead: label="false" or label={value.toString()}.

We're filtering invalid DOM props from the span, but label is a valid prop (the value for label isn't though)