mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 01:05:53 +00:00
Fix bug with disabled state
This commit is contained in:
parent
94b85fca6f
commit
84224f8d7e
@ -21,17 +21,18 @@ function SubmitButton({
|
|||||||
|
|
||||||
if (!availableForSale) {
|
if (!availableForSale) {
|
||||||
return (
|
return (
|
||||||
<button aria-disabled className={clsx(buttonClasses, disabledClasses)}>
|
<button disabled className={clsx(buttonClasses, disabledClasses)}>
|
||||||
Out Of Stock
|
Out Of Stock
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(selectedVariantId);
|
||||||
if (!selectedVariantId) {
|
if (!selectedVariantId) {
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
aria-label="Please select an option"
|
aria-label="Please select an option"
|
||||||
aria-disabled
|
disabled
|
||||||
className={clsx(buttonClasses, disabledClasses)}
|
className={clsx(buttonClasses, disabledClasses)}
|
||||||
>
|
>
|
||||||
<div className="absolute left-0 ml-4">
|
<div className="absolute left-0 ml-4">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user