cerebral-legacy / cerebral-module-forms

Form handling for Cerebral
http://cerebral-website.herokuapp.com/documentation/cerebral-module-forms
MIT License
12 stars 5 forks source link

Unknown prop `field` on <input> tag #33

Closed mephinet closed 8 years ago

mephinet commented 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:

Warning: Unknown prop field on tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

edgesoft commented 8 years ago

@mephinet Good point! Thanks for the issue!

edgesoft commented 8 years ago

Fixed on release 0.3.0