diff --git a/packages/shared/widget-plugin-filtering/src/controllers/NumberFilterController.ts b/packages/shared/widget-plugin-filtering/src/controllers/NumberFilterController.ts index a53790388a..e2570e00d5 100644 --- a/packages/shared/widget-plugin-filtering/src/controllers/NumberFilterController.ts +++ b/packages/shared/widget-plugin-filtering/src/controllers/NumberFilterController.ts @@ -110,6 +110,9 @@ export class NumberFilterController { this.filter.reset(); return; } + if (params.operators) { + this.filter.filterFunction = params.operators; + } this.filter.arg1.value = params.numberValue; }; } diff --git a/packages/shared/widget-plugin-filtering/src/controllers/StaticFilterController.ts b/packages/shared/widget-plugin-filtering/src/controllers/StaticFilterController.ts index 3020a1b1b6..bca54e2dac 100644 --- a/packages/shared/widget-plugin-filtering/src/controllers/StaticFilterController.ts +++ b/packages/shared/widget-plugin-filtering/src/controllers/StaticFilterController.ts @@ -129,6 +129,9 @@ export class StaticFilterController { if (!this.multiselect) { value = value.slice(0, 1); } + if (params.operators) { + this._filterOptions = params.operators; + } this.store.replace(value); }; } diff --git a/packages/shared/widget-plugin-filtering/src/controllers/StringFilterController.ts b/packages/shared/widget-plugin-filtering/src/controllers/StringFilterController.ts index 4d71d3ff28..2b77ad24bf 100644 --- a/packages/shared/widget-plugin-filtering/src/controllers/StringFilterController.ts +++ b/packages/shared/widget-plugin-filtering/src/controllers/StringFilterController.ts @@ -119,6 +119,9 @@ export class StringFilterController { this.filter.reset(); return; } + if (params.operators) { + this.filter.filterFunction = params.operators; + } this.filter.arg1.value = params.stringValue; }; }