When updating the cart in any way (by removing the item, adding another item, or changing the payment method) the .checkout-btn "disabled" prop doesn't work anymore. So the user can click many times on the button and it will create separate orders until he is redirected to the success page. Happened a few times already, and I cannot find the solution. It works properly on page load, but after refreshCart it stops working...
What did you expect to happen?
On cart refresh, the checkout button should always work, it should become disabled on Checkout button click. So that the user wouldn't send multiple orders.
What happened?
When updating the cart in any way (by removing the item, adding another item, or changing the payment method) the .checkout-btn "disabled" prop doesn't work anymore. So the user can click many times on the button and it will create separate orders until he is redirected to the success page. Happened a few times already, and I cannot find the solution. It works properly on page load, but after refreshCart it stops working...
What did you expect to happen?
On cart refresh, the checkout button should always work, it should become disabled on Checkout button click. So that the user wouldn't send multiple orders.
Version
3.x
What browser are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Relevant log output
No response