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

Modal close button submits parent form #169

Closed
kennethj opened this issue Jan 10, 2019 · 1 comment · Fixed by #180
Closed

Modal close button submits parent form #169

kennethj opened this issue Jan 10, 2019 · 1 comment · Fixed by #180

Comments

@kennethj
Copy link
Member

If a modal component is nested in a <form> element, the close button will submit that form. I believe this can be fixed by adding a button type of "button" i.e. <button type="button">.

https://github.com/indiana-university/rivet-react/blob/develop/src/components/Modal/Modal.tsx#L28

@iubot
Copy link
Member

iubot commented Jan 30, 2019

🎉 This issue has been resolved in version 0.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 a pull request may close this issue.

2 participants