disable coupon button if the field is empty (https://github.com/woocommerce/woocommerce-blocks/pull/1977)
This commit is contained in:
parent
361d924c11
commit
3e7a2d41e4
|
@ -76,7 +76,7 @@ const TotalsCouponCodeInput = ( {
|
|||
/>
|
||||
<Button
|
||||
className="wc-block-coupon-code__button"
|
||||
disabled={ isLoading }
|
||||
disabled={ isLoading || ! couponValue }
|
||||
onClick={ ( e ) => {
|
||||
e.preventDefault();
|
||||
onSubmit( couponValue );
|
||||
|
|
Loading…
Reference in New Issue