3
0
Fork 0

added trim method to _selectSource to remove leading and trailing whitespace

15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
Ahmed 2023-07-07 14:34:50 +01:00
parent 447d04b9ea
commit c80765a412
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@ odoo.define("web_search_with_and/static/src/js/search_bar.js", function (require
filterId: source.filterId, filterId: source.filterId,
value: value:
"value" in source "value" in source
? source.value ? source.value.trim()
: this._parseWithSource(labelValue, source), : this._parseWithSource(labelValue, source).trim(),
label: labelValue, label: labelValue.trim(),
operator: source.filterOperator || source.operator, operator: source.filterOperator || source.operator,
isShiftKey: this.isShiftKey, isShiftKey: this.isShiftKey,
}); });