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