Skip to content

Commit

Permalink
Fix #924 filter plugin select2 whitespace error. (#923)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Dubiel <rick@Richards-MacBook-Pro.local>
  • Loading branch information
rickdubiel and Richard Dubiel authored Sep 5, 2021
1 parent 9e08bc0 commit 7e8527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ QueryBuilder.prototype.createRuleInput = function(rule) {
var filter = rule.filter;

for (var i = 0; i < rule.operator.nb_inputs; i++) {
var $ruleInput = $($.parseHTML(this.getRuleInput(rule, i)));
var $ruleInput = $($.parseHTML($.trim(this.getRuleInput(rule, i))));
if (i > 0) $valueContainer.append(this.settings.inputs_separator);
$valueContainer.append($ruleInput);
$inputs = $inputs.add($ruleInput);
Expand Down

0 comments on commit 7e8527d

Please sign in to comment.