From ab5f16275173fce85b36a647815add8def60edd6 Mon Sep 17 00:00:00 2001 From: Roman Vyakhirev Date: Fri, 3 Jul 2026 17:25:24 +0200 Subject: [PATCH] fix(combobox-web): mitigate issue with empty string to executeAction() WC-3314 --- packages/pluggableWidgets/combobox-web/CHANGELOG.md | 2 ++ .../pluggableWidgets/combobox-web/src/hooks/useGetSelector.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pluggableWidgets/combobox-web/CHANGELOG.md b/packages/pluggableWidgets/combobox-web/CHANGELOG.md index cb191d46f1..165795776d 100644 --- a/packages/pluggableWidgets/combobox-web/CHANGELOG.md +++ b/packages/pluggableWidgets/combobox-web/CHANGELOG.md @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - We fixed an issue where the combobox collapsed to 1px width when placed inside a flex row container with `align-items: center`. +- We fixed an issue where the widget crashed when using the "On filter input change" action with the new string behavior enabled. + ## [2.8.1] - 2026-04-30 ### Fixed diff --git a/packages/pluggableWidgets/combobox-web/src/hooks/useGetSelector.ts b/packages/pluggableWidgets/combobox-web/src/hooks/useGetSelector.ts index 95713bd07b..9a7e325ee4 100644 --- a/packages/pluggableWidgets/combobox-web/src/hooks/useGetSelector.ts +++ b/packages/pluggableWidgets/combobox-web/src/hooks/useGetSelector.ts @@ -13,7 +13,7 @@ function onInputValueChange( } if (onChangeFilterInputEvent.canExecute && !onChangeFilterInputEvent.isExecuting) { onChangeFilterInputEvent.execute({ - filterInput: filterValue + filterInput: filterValue || undefined }); } }