You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is reproducible with examples/index.html of the repo. Create two rules, drag the first one and drop it when it overlaps the placeholder and the other rule to more or less the same degree. The drag target disappears and adding new rules no longer works.
The issue interact. Drag and drop works fine on http://querybuilder.js.org/demo.html#plugins. This uses interact.js v1.2.6 while the local dev version installs the newest interact.js v1.3.3. The difference is the order of event dispatch, v1.2.6 fires the drag end event after the drop event while v1.3.3 fires the end event before the drop. This removes the placeholder in the model before the rule is moved to the target position, in the worst case causing the rule to disappear and breaking the query builder.
Issue is reproducible with
examples/index.html
of the repo. Create two rules, drag the first one and drop it when it overlaps the placeholder and the other rule to more or less the same degree. The drag target disappears and adding new rules no longer works.The issue seems to be here
jQuery-QueryBuilder/src/core.js
Lines 254 to 264 in 7f25bb0
group.rules[index - 1].$el
is thenode
itself theninsertAfter
does obviously nothing. Suggested fix would be to addIf that is ok I can make an according fix.
The text was updated successfully, but these errors were encountered: