mistic100 / mistic100/jQuery-QueryBuilder
BUG: OR condition not reseted after rule deletion
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"

But when we delete the second rule, the condition is not reset to "AND" as it should be:

This bug is making an inconsistent behavior, because with for same inputs there is different output based previous events
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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