gatsbyjs / gatsby-starter-shopify

A Gatsby starter using the latest Shopify plugin showcasing a store with product overview, individual product pages, and a cart
https://shopify-demo.gatsbyjs.com/
BSD Zero Clause License
311 stars 137 forks source link

Added button type to addToCart button; required by firefox #3

Closed lamellama closed 3 years ago

lamellama commented 3 years ago

The demo does not allow adding items to cart on firefox because of type="submit"

LekoArts commented 3 years ago

Thanks for the PR! The actual issue was that a event.preventDefault() was missing. I credited you in this commit: https://github.com/gatsbyjs/gatsby-starter-shopify/commit/60fcff9119fd0eed738506921adbd7c0dcf38bb2