Skip to content

Commit 087460e

Browse files
committed
Fix: Scroll to shipping method list when it is unselected
1 parent 9ed6060 commit 087460e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/evershop/src/components/frontStore/checkout/shipment/ShippingMethods.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ export function ShippingMethods({
105105
};
106106

107107
return (
108-
<div className="checkout-shipment">
108+
<div
109+
className="checkout-shipment"
110+
aria-invalid={formState.errors.shippingMethod ? 'true' : 'false'}
111+
tabIndex={-1}
112+
>
109113
<Card>
110114
<CardHeader>
111115
<CardTitle>

packages/evershop/src/modules/checkout/pages/frontStore/checkout/Checkout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export default function CheckoutPage({
5050
<Payment />
5151
<CheckoutButton />
5252
</div>
53-
/** For legacy support */
5453
<Area id="checkoutForm" noOuter />
5554
<Area id="checkoutFormAfter" noOuter />
5655
</Form>

0 commit comments

Comments
 (0)