diff --git a/packages/pluggableWidgets/combobox-web/CHANGELOG.md b/packages/pluggableWidgets/combobox-web/CHANGELOG.md index da034edc54..d32f0fb00a 100644 --- a/packages/pluggableWidgets/combobox-web/CHANGELOG.md +++ b/packages/pluggableWidgets/combobox-web/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - We fixed an issue where combobox failed to render a proper width on auto-fit container. +- We fixed an issue with combobox unnecessary applying filtering. ## [2.5.0] - 2025-08-12 diff --git a/packages/pluggableWidgets/combobox-web/package.json b/packages/pluggableWidgets/combobox-web/package.json index 29bae06fcc..30bf44d692 100644 --- a/packages/pluggableWidgets/combobox-web/package.json +++ b/packages/pluggableWidgets/combobox-web/package.json @@ -49,7 +49,7 @@ "dependencies": { "classnames": "^2.5.1", "downshift": "^7.6.2", - "match-sorter": "^6.3.4" + "match-sorter": "^8.1.0" }, "devDependencies": { "@mendix/automation-utils": "workspace:*", diff --git a/packages/pluggableWidgets/combobox-web/src/hooks/useDownshiftSingleSelectProps.ts b/packages/pluggableWidgets/combobox-web/src/hooks/useDownshiftSingleSelectProps.ts index 377d20a000..4e99e5015f 100644 --- a/packages/pluggableWidgets/combobox-web/src/hooks/useDownshiftSingleSelectProps.ts +++ b/packages/pluggableWidgets/combobox-web/src/hooks/useDownshiftSingleSelectProps.ts @@ -30,9 +30,11 @@ export function useDownshiftSingleSelectProps( selector.setValue(selectedItem ?? null); }, onInputValueChange({ inputValue, type }: UseComboboxStateChange) { - selector.options.setSearchTerm(inputValue!); if (selector.onFilterInputChange && type === useCombobox.stateChangeTypes.InputChange) { + selector.options.setSearchTerm(inputValue!); selector.onFilterInputChange(inputValue!); + } else { + selector.options.setSearchTerm(""); } }, getA11yStatusMessage(options) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1fd03b0f33..c4cd41e810 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -969,8 +969,8 @@ importers: specifier: ^7.6.2 version: 7.6.2(react@18.2.0) match-sorter: - specifier: ^6.3.4 - version: 6.3.4 + specifier: ^8.1.0 + version: 8.1.0 devDependencies: '@mendix/automation-utils': specifier: workspace:* @@ -3663,10 +3663,6 @@ packages: resolution: {integrity: sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==} engines: {node: '>=6.9.0'} - '@babel/runtime@7.24.4': - resolution: {integrity: sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.25.7': resolution: {integrity: sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==} engines: {node: '>=6.9.0'} @@ -8615,8 +8611,8 @@ packages: marky@1.3.0: resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==} - match-sorter@6.3.4: - resolution: {integrity: sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==} + match-sorter@8.1.0: + resolution: {integrity: sha512-0HX3BHPixkbECX+Vt7nS1vJ6P2twPgGTU3PMXjWrl1eyVCL24tFHeyYN1FN5RKLzve0TyzNI9qntqQGbebnfPQ==} material-colors@1.2.6: resolution: {integrity: sha512-6qE4B9deFBIa9YSpOc9O0Sgc43zTeVYbgDT5veRKSlB2+ZuHNoVVxA1L/ckMUayV9Ay9y7Z/SZCLcGteW9i7bg==} @@ -12372,10 +12368,6 @@ snapshots: dependencies: regenerator-runtime: 0.13.11 - '@babel/runtime@7.24.4': - dependencies: - regenerator-runtime: 0.14.1 - '@babel/runtime@7.25.7': dependencies: regenerator-runtime: 0.14.1 @@ -18974,9 +18966,9 @@ snapshots: marky@1.3.0: {} - match-sorter@6.3.4: + match-sorter@8.1.0: dependencies: - '@babel/runtime': 7.24.4 + '@babel/runtime': 7.27.6 remove-accents: 0.5.0 material-colors@1.2.6: {}