ItsJonQ / g2

✨ An experimental reimagining of WordPress components
http://g2-components.com/
MIT License
105 stars 12 forks source link

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

Closed kevin940726 closed 3 years ago

kevin940726 commented 3 years ago

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.

vercel[bot] commented 3 years ago

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