From c80765a412a3185b201e64b64e500cf3e24dba17 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Fri, 7 Jul 2023 14:34:50 +0100 Subject: [PATCH] added trim method to _selectSource to remove leading and trailing whitespace --- web_search_with_and/static/src/js/search_bar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_search_with_and/static/src/js/search_bar.js b/web_search_with_and/static/src/js/search_bar.js index 005d53a57..bbab91bd4 100644 --- a/web_search_with_and/static/src/js/search_bar.js +++ b/web_search_with_and/static/src/js/search_bar.js @@ -27,9 +27,9 @@ odoo.define("web_search_with_and/static/src/js/search_bar.js", function (require filterId: source.filterId, value: "value" in source - ? source.value - : this._parseWithSource(labelValue, source), - label: labelValue, + ? source.value.trim() + : this._parseWithSource(labelValue, source).trim(), + label: labelValue.trim(), operator: source.filterOperator || source.operator, isShiftKey: this.isShiftKey, });