-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLAY-1851] Checkbox React Hook Form support #4262
base: master
Are you sure you want to change the base?
Conversation
A change to documentation files was detected in your PR. Please visit this link to preview changes: https://portal-staging.powerapp.cloud/docs?filters[kind]=all&filters[user]=all&filters[namespaceFilter]=play-1851checkboxreacthook |
🎉 Congratulations on creating an Alpha Version! Your Alpha for Ruby Gems is 14.13.0.pre.alpha.play1851checkboxreacthook6083 Your Alpha for NPM is 14.13.0-alpha.play1851checkboxreacthook6083 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Just a couple of small places to improve- take em or leave em.
6d72267
to
aaea70b
Compare
What does this PR do? A clear and concise description with your runway ticket url.
Runway https://runway.powerhrg.com/backlog_items/PLAY-1851
Review env https://pr4262.playbook.beta.hq.powerapp.cloud/kits/checkbox/react#react-hook-form
Adding support for react hook form in our input kits
React Hook form needs the ref field to be more flexible to pass its props to the input field, so i did that.
Wrapping a field in react-hook-form's
<controller/>
element isn't the approach i went for. Because that is suppose to be used when you don't have access to theref
field.