Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 644 Bytes

cold-foxes-draw.md

File metadata and controls

19 lines (15 loc) · 644 Bytes
skeleton @shopify/hydrogen
patch
patch

Breaking change

Previously the VariantSelector component would filter out options that only had one value. This is undesireable for some apps. We've removed that filter, if you'd like to retain the existing functionality, simply filter the options prop before it is passed to the VariantSelector component:

 <VariantSelector
   handle={product.handle}
+  options={product.options.filter((option) => option.values.length > 1)}
-  options={product.options}
   variants={variants}>
 </VariantSelector>

Fixes #1198