Skip to content

Commit 7e8527d

Browse files
rickdubielRichard Dubiel
andauthored
Fix #924 filter plugin select2 whitespace error. (#923)
Co-authored-by: Richard Dubiel <rick@Richards-MacBook-Pro.local>
1 parent 9e08bc0 commit 7e8527d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ QueryBuilder.prototype.createRuleInput = function(rule) {
700700
var filter = rule.filter;
701701

702702
for (var i = 0; i < rule.operator.nb_inputs; i++) {
703-
var $ruleInput = $($.parseHTML(this.getRuleInput(rule, i)));
703+
var $ruleInput = $($.parseHTML($.trim(this.getRuleInput(rule, i))));
704704
if (i > 0) $valueContainer.append(this.settings.inputs_separator);
705705
$valueContainer.append($ruleInput);
706706
$inputs = $inputs.add($ruleInput);

0 commit comments

Comments
 (0)