MaterialUI warning on controlled select component #2014
-
|
Hi, I'm getting the following warning from MaterialUI when I use a controlled select component: On my Apparently the defaultValue is not being setted on first render, which causes this warning. Is there any way to prevent it? I tried to make a conditional render on my controlled select component but still produces this warning. Btw, thank you for this amazing form library! :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
looks like your defaultValue is miss matching what's in MUI, which version are you using? V5 or v6? |
Beta Was this translation helpful? Give feedback.
-
|
Just removed |
Beta Was this translation helpful? Give feedback.
Just removed
node_modulesfolder and re-install dependencies using yarn, now warning is gone. I'm using same versions: