Skip to content

Chosen: Select existing choices from delimited paste - #173

Merged
JJJ merged 2 commits into
masterfrom
jjj/paste-multiple-values
Sep 27, 2026
Merged

JJJ merged 2 commits into
masterfrom
jjj/paste-multiple-values

Conversation

@JJJ

@JJJ JJJ commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Summary

Addresses harvesthq#2845 with an opt-in paste_multiple_values setting for multiple selects.

  • Comma-, semicolon-, tab-, and line-separated paste selects unique existing enabled options by exact value or case-insensitive label.
  • Unknown, disabled, hidden, ambiguous, and over-limit entries remain in the search input for editing. No option is created.
  • The native <select> remains authoritative and emits one input and change event when selections change.
  • Both classic adapters, Options/API docs, both interactive demos, changelog, and triage record are updated. The matching wiki update and screenshot are prepared for publication after merge.

The old upstream PR harvesthq#2846 modified ordinary search filtering and selected highlighted results while iterating tokens. This implementation handles the paste event directly so ordinary search behavior and defaults remain unchanged.

Verification

  • npm test passed: 155/155 jQuery specs per supported version, 151/151 Prototype specs, React browser checks, and 186 visual fixtures.
  • Chromium paste events on both demo pages selected Atlas, Beacon, and Comet in the native select and left Unknown in the input.
  • Generated JavaScript/CSS parity between dist/ and docs/, plus git diff --check, passed.

JJJ added 2 commits September 27, 2026 16:36
Add opt-in paste_multiple_values for multiple selects. Match unique existing
enabled options by exact value or case-insensitive label, preserve unmatched
text, and respect the native select and selection limit in both adapters.

Add browser specs, demo examples, Options documentation, and changelog entry.

See harvesthq#2845.
@JJJ
JJJ merged commit 6b74556 into master Sep 27, 2026
2 checks passed
@JJJ
JJJ deleted the jjj/paste-multiple-values branch September 27, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant