Skip to content

Commit 824a299

Browse files
committed
fix: add disabled to input
1 parent ac834b7 commit 824a299

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/product/[slug].vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
name="variation"
3232
:checked="i == product.variations.nodes.findIndex((attr) => attr.stockStatus === `IN_STOCK`)"
3333
:value="variation.attributes.nodes.map((attr) => attr.value).toString()"
34-
v-model="selectedVariation" />
34+
v-model="selectedVariation"
35+
:disabled="variation.stockStatus === 'OUT_OF_STOCK'" />
3536
<span class="py-1.5 px-2 border rounded leading-[10px] h-6">{{ variation.attributes.nodes.map((attr) => attr.value).toString() }}</span>
3637
</label>
3738
</div>

0 commit comments

Comments
 (0)