diff --git a/assets/js/frontend/woocommerce.js b/assets/js/frontend/woocommerce.js index 693ece80893..8c3cac52f4c 100644 --- a/assets/js/frontend/woocommerce.js +++ b/assets/js/frontend/woocommerce.js @@ -25,9 +25,10 @@ jQuery( function( $ ) { } // Set a cookie and hide the store notice when the dismiss button is clicked - $( '.woocommerce-store-notice__dismiss-link' ).click( function() { + $( '.woocommerce-store-notice__dismiss-link' ).click( function( event ) { Cookies.set( cookieName, 'hidden', { path: '/' } ); $( '.woocommerce-store-notice' ).hide(); + event.preventDefault(); }); // Make form field descriptions toggle on focus.