Closed rippedspine closed 8 years ago
Is this considered a bugfix?
(sorry, quite new to open source contribution...)
@rippedspine Yep, it's a small bugfix. Thanks!
Hey! Just noticed that an empty string should be more accurate, since this is a controlled component. Should I make another pull request?
https://facebook.github.io/react/docs/forms.html#controlled-components
@rippedspine Yep, you can easy create a new PR with the empty string, it probably will be better in this case.
As of React v15.0 input values must be strings or undefined. Cannot use null anymore as we get a warning.
Warning:
value
prop oninput
should not be null. Consider using the empty string to clear the component orundefined
for uncontrolled components.