lazy-input icon indicating copy to clipboard operation
lazy-input copied to clipboard

React 15 complains about swapping from uncontrolled to controlled.

Open Plummat opened this issue 8 years ago • 2 comments

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

Plummat avatar Apr 26 '16 15:04 Plummat

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?

HurricaneJames avatar Apr 30 '16 14:04 HurricaneJames

I think you just need a default value for value of an empty string. Had to solve this same issue in our lib.

jondlm avatar Jan 31 '17 23:01 jondlm