mistic100 / mistic100/jQuery-QueryBuilder

BUG: OR condition not reseted after rule deletion

Open
#954 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
544
PR merge metrics
No merged PRs in 30d

Description

This issue is reproducible with the basic demo: https://querybuilder.js.org/demo.html
When there is only one rule, the AND/OR selector is greyed out and auto set to "AND".
Now if we add a new rule, we can chose to set to "OR"
image
But when we delete the second rule, the condition is not reset to "AND" as it should be:
image

This bug is making an inconsistent behavior, because with for same inputs there is different output based previous events

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the basic demo at https://querybuilder.js.org/demo.html: create a second rule, change the AND/OR selector to OR, then delete that rule. Trace the deletion behavior and verify that the selector resets to AND and produces consistent output for the remaining rule.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.