Eucrow / NewCamp

GNU General Public License v3.0
0 stars 0 forks source link

component changing from uncontrolled to controlled -- LengthForm component #23

Open Eucrow opened 2 weeks ago

Eucrow commented 2 weeks ago

When the sexes are shown this warning is thrown: index.js:1 Warning: A component is changing an uncontrolled input of type number 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

I think is due for the l.length is undefined when the component is loaded the first time, but then is loaded again whit a value 🤔