lazy-input
lazy-input copied to clipboard
React 15 complains about swapping from uncontrolled to controlled.
Hey There, the latest update to react bubbled up this warning:
Warning: LazyInput is changing a uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components
Where are you seeing this error. I just upgraded to lazy-input to react v15.0.2, added an examples file, and I do not get a warning. Are you sure that this is an issue with LazyInput?
I think you just need a default value for value
of an empty string. Had to solve this same issue in our lib.