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

fix(react): form values onChange and onSubmit #635

Merged
merged 3 commits into from
May 11, 2021
Merged

fix(react): form values onChange and onSubmit #635

merged 3 commits into from
May 11, 2021

Conversation

rabelloo
Copy link
Contributor

@rabelloo rabelloo commented May 3, 2021

Purpose

Fix Form to read values properly depending on element attributes.

Approach

Check for element attributes and resolve value according to each of them.

Testing

Completely revamped the unit test suite.
Manual testing can be done on the story.

Risks

None.

@rabelloo rabelloo requested a review from josokinas May 3, 2021 11:51
@rabelloo rabelloo self-assigned this May 3, 2021
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2021

🎊 PR Preview e7f4dd7 has been successfully built and deployed to https://onfido-castor-preview-pr-635.surge.sh

🕐 Build time: 192.681s

🤖 By surge-preview

@rabelloo rabelloo force-pushed the fix/form branch 3 times, most recently from 0bf94c4 to 7047e07 Compare May 7, 2021 11:45
@rabelloo rabelloo changed the title fix(react): form checkboxes value fix(react): form values onChange and onSubmit May 7, 2021
@rabelloo rabelloo requested review from josokinas and removed request for josokinas May 7, 2021 11:47
Copy link
Contributor

@josokinas josokinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome 👏

packages/react/src/components/form/form.stories.tsx Outdated Show resolved Hide resolved
@rabelloo rabelloo merged commit 4cf3691 into main May 11, 2021
@rabelloo rabelloo deleted the fix/form branch May 11, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants