diff --git a/assets/js/admin/wc-shipping-zone-methods.js b/assets/js/admin/wc-shipping-zone-methods.js index 08e4d097d0c..45d17f19d21 100644 --- a/assets/js/admin/wc-shipping-zone-methods.js +++ b/assets/js/admin/wc-shipping-zone-methods.js @@ -62,6 +62,9 @@ shippingMethod.trigger( 'change:methods' ); shippingMethod.changes = {}; shippingMethod.trigger( 'saved:methods' ); + + // Overrides the onbeforeunload callback added by settings.js. + window.onbeforeunload = null; } else { window.alert( data.strings.save_failed ); }