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

Add type="button" to components using as="button" implicitly #298

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

kevin940726
Copy link
Collaborator

Similar to #288, this PR adds type="button" to those components implicitly using as="button". So that they won't be rendered as a submit button when placed inside a <form> element.

@kevin940726 kevin940726 added the bug Something isn't working label Apr 1, 2021
@vercel
Copy link

vercel bot commented Apr 1, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/itsjonq/g2/Ec1rExa5JwejWtskktcsFb4kWfsh
✅ Preview: https://g2-git-fix-implicit-type-submit-itsjonq.vercel.app

Copy link
Owner

@ItsJonQ ItsJonQ left a comment

Choose a reason for hiding this comment

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

Thanks @kevin940726 !! 🚀

@ItsJonQ ItsJonQ merged commit 049e1c8 into main Apr 1, 2021
@kevin940726 kevin940726 deleted the fix/implicit-type-submit branch April 1, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants