Permalink
Browse files

Fix #431 re-create input when operators are from different optgroups

  • Loading branch information...
1 parent 260d521 commit 1f73bd8193e770b9dcc12c5ca466c7b6f90b72f0 @mistic100 committed Feb 12, 2017
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core.js
View
@@ -658,7 +658,10 @@ QueryBuilder.prototype.updateRuleOperator = function(rule, previousOperator) {
else {
$valueContainer.show();
- if ($valueContainer.is(':empty') || !previousOperator || rule.operator.nb_inputs !== previousOperator.nb_inputs) {
+ if ($valueContainer.is(':empty') || !previousOperator ||
+ rule.operator.nb_inputs !== previousOperator.nb_inputs ||
+ rule.operator.optgroup !== previousOperator.optgroup
+ ) {
this.createRuleInput(rule);
}
}

0 comments on commit 1f73bd8

Please sign in to comment.