Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dropdown] Auto select mulitple options from text #3066

Open
wdmeest opened this issue Jul 2, 2024 · 2 comments
Open

[Dropdown] Auto select mulitple options from text #3066

wdmeest opened this issue Jul 2, 2024 · 2 comments
Labels
type/usage Any support issues asking for help

Comments

@wdmeest
Copy link

wdmeest commented Jul 2, 2024

Feature Request

Is there a possibility to auto select all existing options from a pasted text, that is separated with a comma.
You can do it with the option "allowAdditions" set on "true" but that adds non-existing dropdown options.

Example

Dropdown with following options:

  • One
  • Bla
  • Some
  • Other
  • Thing

Text to paste into the dropdown "One, other, some"

Should result in automatically selection of "One", "Some" and "Other"

@wdmeest wdmeest added state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/feat Any feature requests or improvements labels Jul 2, 2024
@lubber-de
Copy link
Member

This already works out of the box.
See https://jsfiddle.net/lubber/hqoL3xtn/5/

paste

@lubber-de lubber-de added type/usage Any support issues asking for help and removed state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/feat Any feature requests or improvements labels Jul 2, 2024
@wdmeest
Copy link
Author

wdmeest commented Jul 3, 2024

That works perfectly indeed if the given pasted text contains the values of the options but not when it contains the labels (sorry my fault I didn't mentioned this in the above issue).

Example:
https://jsfiddle.net/uogx5L7r/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/usage Any support issues asking for help
Projects
None yet
Development

No branches or pull requests

2 participants