When undefined is passed as the checked props of the input, this one is considered as uncontrolled, and an uncontrolled component sometimes cannot change its value via React, resulting in an input which changes cannot be controlled by focus. Passing '' instead of undefined fix this error.
When
undefined
is passed as thechecked
props of the input, this one is considered as uncontrolled, and an uncontrolled component sometimes cannot change its value via React, resulting in an input which changes cannot be controlled by focus. Passing''
instead ofundefined
fix this error.