mistic100 / mistic100/jQuery-QueryBuilder

Selectize not updating after using setRules

Open
#1,014 2 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

Hi all,

using the example file of v3.0.0, if you click on "Set: From JSON", the value of the "State"-filter (uses the Selectize-Plugin) is set to "Alaska".

Now, if you change the value of this rule, e.g. to "Alaska" and "Arkansas" and click on "Get: JSON", the rule value of "State" remains at "Alaska":
{ "id": "state", "field": "state", "type": "string", "input": "select", "operator": "equal", "value": "AK" }

Expected output would be:
{ "id": "state", "field": "state", "type": "string", "input": "select", "operator": "equal", "value": ["AK", "AR"] }

Best reagrds
Hauke

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

Start with the v3.0.0 example file and reproduce the Set: From JSON, edit the State rule, and Get: JSON sequence. Trace how the Selectize-backed State value is read when serializing the rule, then verify that the result changes from "AK" to ["AK", "AR"] after the selection changes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.