From 2d87da87deb97ebad0c68684f11a2508b31d3802 Mon Sep 17 00:00:00 2001 From: Fernando Marichal Date: Tue, 18 Apr 2023 14:53:16 -0300 Subject: [PATCH] Fix disabled "Save attributes" button when editing a product (#37790) * Fix disabled save button * Add changelog --- .../woocommerce/changelog/fix-disabled_save_attributes_button | 4 ++++ plugins/woocommerce/client/legacy/js/admin/meta-boxes.js | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 plugins/woocommerce/changelog/fix-disabled_save_attributes_button diff --git a/plugins/woocommerce/changelog/fix-disabled_save_attributes_button b/plugins/woocommerce/changelog/fix-disabled_save_attributes_button new file mode 100644 index 00000000000..4642de54ab8 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-disabled_save_attributes_button @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix disabled "Save attributes" button diff --git a/plugins/woocommerce/client/legacy/js/admin/meta-boxes.js b/plugins/woocommerce/client/legacy/js/admin/meta-boxes.js index f773e673ffa..34b42f3d0ec 100644 --- a/plugins/woocommerce/client/legacy/js/admin/meta-boxes.js +++ b/plugins/woocommerce/client/legacy/js/admin/meta-boxes.js @@ -187,4 +187,7 @@ jQuery( function ( $ ) { 'input, textarea', jQuery.maybe_disable_save_button ); + + // Maybe disable save buttons when editing products. + jQuery.maybe_disable_save_button(); } );