Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

markdoeswork
Copy link
Contributor

@markdoeswork markdoeswork commented Feb 11, 2025

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 the ref field.

Screenshot

@markdoeswork markdoeswork added enhancement New Features, Props, & Variants (USED IN CHANGELOG) milano 20 MAX - Deploy this PR to a review environment via Milano labels Feb 11, 2025
@markdoeswork markdoeswork self-assigned this Feb 11, 2025
@powerhome-portal
Copy link

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

Copy link

🎉 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

@markdoeswork markdoeswork added the minor Semver Target label Feb 12, 2025
@markdoeswork markdoeswork marked this pull request as ready for review February 12, 2025 14:32
@markdoeswork markdoeswork requested a review from a team as a code owner February 12, 2025 14:32
kangaree
kangaree previously approved these changes Feb 12, 2025
Copy link
Contributor

@kangaree kangaree left a 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.

@markdoeswork markdoeswork force-pushed the play/1851_checkbox_react_hook branch from 6d72267 to aaea70b Compare February 13, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha enhancement New Features, Props, & Variants (USED IN CHANGELOG) milano 20 MAX - Deploy this PR to a review environment via Milano minor Semver Target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants