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
|
<Button
|
||||||
className="wc-block-coupon-code__button"
|
className="wc-block-coupon-code__button"
|
||||||
disabled={ isLoading }
|
disabled={ isLoading || ! couponValue }
|
||||||
onClick={ ( e ) => {
|
onClick={ ( e ) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
onSubmit( couponValue );
|
onSubmit( couponValue );
|
||||||
|
|
Loading…
Reference in New Issue