Hylozoic / hylo-evo

Hylo UI
Apache License 2.0
36 stars 10 forks source link

fix component changing an uncontrolled input warning #1681

Closed KevinTriplett closed 3 months ago

KevinTriplett commented 3 months ago

We get this warning:

File: src/routes/GroupWelcomeModal/GroupWelcomeModal.test.js console.error Warning: A component is changing an uncontrolled input of type checkbox 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 in input (created by GroupWelcomeModal) in li (created by GroupWelcomeModal) in ol (created by GroupWelcomeModal) in div (created by GroupWelcomeModal) in div (created by GroupWelcomeModal) in div (created by GroupWelcomeModal) in div (created by GroupWelcomeModal) in Transition (created by CSSTransition) in CSSTransition (created by GroupWelcomeModal) in GroupWelcomeModal in Router (created by MemoryRouter) in MemoryRouter in Provider in LayoutFlagsProvider in Unknown

  at printWarning (node_modules/react-dom/cjs/react-dom.development.js:88:30)
  at error (node_modules/react-dom/cjs/react-dom.development.js:60:5)
  at updateWrapper (node_modules/react-dom/cjs/react-dom.development.js:1870:7)
  at updateProperties (node_modules/react-dom/cjs/react-dom.development.js:6260:7)
  at commitUpdate (node_modules/react-dom/cjs/react-dom.development.js:7553:3)
  at commitWork (node_modules/react-dom/cjs/react-dom.development.js:20546:13)
  at commitMutationEffects (node_modules/react-dom/cjs/react-dom.development.js:22776:11)
  at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:188:14)