You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently migrated from 0.11.0 to 1.0.0-beta.2 and are now seeing the following warning from React (16.2.0):
Warning: Failed prop type: Invalid prop `label` of type `object` supplied to `Textarea`, expected `string`.
in Textarea (created by withFRC(Textarea))
in withFRC(Textarea) (created by Formsy(withFRC(Textarea)))
...
Thank you for the fix. I think there may be one other place this needs to be adjusted which is in ComponentHOC.propTypes.label. If you'd prefer I can open a new issue for this HOC variant.
Hi,
We recently migrated from
0.11.0
to1.0.0-beta.2
and are now seeing the following warning from React (16.2.0
):It looks like this is due to a discrepancy between ComponentCommon.propTypes.label which is set to
PropTypes.string
and Label.PropTypes.label which is set toPropTypes.node
.We use the
PropTypes.node
variety (hence the warning). SinceLabel
is where it is actually implemented I recommend thatComponentCommon
be switched:Here is an example of our usage:
Thanks!
The text was updated successfully, but these errors were encountered: