From 547cc76f8edb75df721838c5d585f85a884beeaa Mon Sep 17 00:00:00 2001 From: Saad Tarhi Date: Wed, 22 Mar 2023 12:45:48 +0000 Subject: [PATCH] Fix save changes bug in Firefox browser (https://github.com/woocommerce/woocommerce-blocks/pull/8754) --- .../js/extensions/shipping-methods/pickup-location/save.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/woocommerce-blocks/assets/js/extensions/shipping-methods/pickup-location/save.tsx b/plugins/woocommerce-blocks/assets/js/extensions/shipping-methods/pickup-location/save.tsx index 427d0063dd5..4e904c23ea2 100644 --- a/plugins/woocommerce-blocks/assets/js/extensions/shipping-methods/pickup-location/save.tsx +++ b/plugins/woocommerce-blocks/assets/js/extensions/shipping-methods/pickup-location/save.tsx @@ -29,6 +29,7 @@ const SaveSettings = () => { onClick={ ( event: React.MouseEvent< HTMLButtonElement, MouseEvent > ) => { + event.preventDefault(); const target = event.target as HTMLButtonElement; if ( target?.form?.reportValidity() ) { save();