plone / plone/mockup

select2 pattern should split manually entered separators

Open
#788 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.