Shopify/storefront-api-examples

'uncaught type error' in react-js-buy product component

Strangehill opened this issue · 0 comments

Each product has a select dropdown for color and one for size.
When there's only one color option, and I change the option for size,
When I change the size selection without having changed the color selection previously I get a console error, and the selectedSize is ignored in favor of the default when if I add the product to the cart immediately:

Product.js:44 Uncaught TypeError: Cannot read property 'attrs' of undefined
    at Product.handleOptionChange (Product.js:44)