mistic100 / mistic100/jQuery-QueryBuilder
Selectize not updating after using setRules
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
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
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