Commit 16ba233fa28 for woocommerce
commit 16ba233fa28bf0cb4184b7e83e56f57e3399ff7e
Author: Albert Juhé Lluveras <contact@albertjuhe.com>
Date: Thu Oct 22 09:21:28 2026 +0200
Add back closeOverlayOnEscape action in Product Filters store for backwards compatibility (#70101)
* Add back closeOverlayOnEscape action in Product Filters store for backwards compatibility
* Add changelog
diff --git a/plugins/woocommerce/changelog/fix-WOOAIRR-593-add-back-closeOverlayOnEscape b/plugins/woocommerce/changelog/fix-WOOAIRR-593-add-back-closeOverlayOnEscape
new file mode 100644
index 00000000000..8630bd5b6d2
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-WOOAIRR-593-add-back-closeOverlayOnEscape
@@ -0,0 +1,5 @@
+Significance: patch
+Type: fix
+Comment: Add back closeOverlayOnEscape action in Product Filters store for backwards compatibility
+
+
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/product-filters/frontend.ts b/plugins/woocommerce/client/blocks/assets/js/blocks/product-filters/frontend.ts
index 9d937799965..ee1c5cb6db3 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/product-filters/frontend.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/product-filters/frontend.ts
@@ -210,6 +210,15 @@ const productFiltersStore = {
actions.closeOverlay();
}
},
+ /**
+ * @deprecated Since 11.4.0.
+ */
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ closeOverlayOnEscape: ( event?: KeyboardEvent ) => {
+ console.warn(
+ 'actions.closeOverlayOnEscape is deprecated since WooCommerce 11.4.0.'
+ );
+ },
handleOverlayKeydown: withSyncEvent( ( event: KeyboardEvent ) => {
const context = getContext< ProductFiltersContext >();
if ( ! context.isOverlayOpened ) {