mistic100 / mistic100/jQuery-QueryBuilder

Add rule only inside group

Open
#798 1 comment 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

Hello.
I set the parameter allow_groups: 1, that is, I need only first level groups.
Now I have a little problem. I need to make sure that when you click on the "Add Rule" button, a new rule is added only to the end of your group. Now a new rule is added after the entire list, where groups and rules are mixed.
here is a picture
Also, it is necessary that the new group is always added to the end of the general list.
How can i do this?
Thank!

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

No file or test is named. Start by tracing the Add Rule button and group-creation flow in the jQuery QueryBuilder code, then inspect how allow_groups limits nesting and how items are ordered. Done means new rules are appended within their group and new groups are appended to the overall list, with tests covering both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.