Why does the shadcn-ui form embrace controlled inputs? #3229
Unanswered
joshuarost
asked this question in
Q&A
Replies: 2 comments
-
I'm really wondering about the same thing. It feels like a big philosophical clash, and I'd love to learn more about the rationale behind this decision. @shadcn |
Beta Was this translation helpful? Give feedback.
0 replies
-
Probably because of components like Select,Calendar which uses react-select,react-date-picker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
React-hook-form has been written to embrace the use of uncontrolled components. Is there a reason why shadcn-ui uses the
Controller
component to make every field controlled? @shadcnBeta Was this translation helpful? Give feedback.
All reactions