You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This poses a problem in react land because if there suddenly is a value, react will say something to the effect of "uncontrolled component suddenly becomes controlled". So if controlled is used anywhere, we should give it a default value of nil or maybe empty "". I'm not sure which one makes the most sense, and would love some opinions.
The text was updated successfully, but these errors were encountered:
jho406
changed the title
Controlled should always have value.
Controlled forms and inputs should always have a valueJun 7, 2024
When using the controlled options
The output does not contain a value
This poses a problem in react land because if there suddenly is a value, react will say something to the effect of "uncontrolled component suddenly becomes controlled". So if controlled is used anywhere, we should give it a default value of
nil
or maybe empty "". I'm not sure which one makes the most sense, and would love some opinions.The text was updated successfully, but these errors were encountered: