select2 pattern should split manually entered separators
Open
Nobody has claimed this yet.
01 type: bug
14 prio: low
21 status: confirmed
- Dominant language
- JavaScript
- Stars
- 57
- Forks
- 103
- Avg merge
- 10h 25m
- Merged PRs (30d)
- 18
Description
This is easier to explain with an example:
- edit a page and on the tags field add "one; two", if you have enough permissions select2 will let you add this as a single tag (visually). After selecting this one, add "three" and select it, now you have two tags: "one;two" and "three"
- save and see that you actually have three tags: one, two, three
- edit again and see that there are in fact three tags
So this bug is about when entering the tags, to notice that you added the separator and already split the tags, or prevent entering the separator to begin with?
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 behavior in the tags field using a value such as "one; two", then add another tag and save. Start by locating the select2 tags pattern implementation; the issue does not identify a file or test. Done should mean manually entered separators are handled consistently before saving, but the preferred behavior—splitting them or preventing entry—still needs a decision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100