andrewhathaway / Winterfell

Generate complex, validated and extendable JSON-based forms in React.
http://winterfell.andrewhathaway.net
MIT License
785 stars 116 forks source link

Added fix for react warnings #84

Closed igor-yamshchykov closed 7 years ago

igor-yamshchykov commented 7 years ago

If you initially pass undefined or null as the value prop, the component starts life as an "uncontrolled" component. Once you interact with the component, we set a value and react changes it to a "controlled" component, and issues the warning.

Changed initial values to empty strings instead of undefined.

igor-yamshchykov commented 7 years ago

@andrewhathaway made pr without build changes as you requested

andrewhathaway commented 7 years ago

@igor-yamshchykov Perfect, thank you very much!

andrewhathaway commented 7 years ago

Released 1.1.1 contains this PR. Thanks @igor-yamshchykov!