Closed mephinet closed 8 years ago
The render function of passes all its properties on to the element it creates: https://github.com/cerebral/cerebral-module-forms/blob/master/react/Input/index.js#L31 Thus, also the property field will be passed on the the HTML input element, which does not exist there, resulting in the warning:
render
field
Warning: Unknown prop field on tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
@mephinet Good point! Thanks for the issue!
Fixed on release 0.3.0
The
render
function of passes all its properties on to the element it creates: https://github.com/cerebral/cerebral-module-forms/blob/master/react/Input/index.js#L31 Thus, also the propertyfield
will be passed on the the HTML input element, which does not exist there, resulting in the warning: