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

If wrapped in form don't submit when clicking buttons #89

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

mbarton
Copy link
Member

@mbarton mbarton commented Jun 24, 2024

Fixes #88 by making all buttons type=button so they don't automatically submit if the chart is wrapped in a parent form.

@mbarton mbarton requested a review from eatyourpeas June 24, 2024 12:18
@mbarton mbarton self-assigned this Jun 24, 2024
@mbarton mbarton force-pushed the mbarton/wrapped-in-form-fix branch from ece4bad to dc18cc5 Compare July 15, 2024 09:01
@mbarton mbarton merged commit 4828c71 into live Jul 15, 2024
1 check passed
@mbarton mbarton deleted the mbarton/wrapped-in-form-fix branch July 15, 2024 09:04
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.

React buttons default to type submit and will submit html form
1 participant