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

Add support for tags #2660

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

adaniello
Copy link

Converts a select with multiple attribute and tags option set to true, in a tags input: by searching for tags, if tag isn't in list user can add by hit Enter.

Converts a select with multiple attribute and `tags` option set to true, in a tags input: by searching for tags, if tag isn't in list user can add by hit Enter.
@NicolasCARPi
Copy link
Collaborator

Hello,

Thank you for your proposition. I think at the moment we need to focus on fixing existing bugs and releasing a new version, so don't be surprised if this PR, which adds code/feature is not reviewed quickly. Is there an issue linked to this change?

@adaniello
Copy link
Author

I agree. Simply this feature was requested many times: see at #565 and #2228 (comment)

Thanks

@akinuri
Copy link

akinuri commented Jan 4, 2023

Is there a demo/example page for this?

I tried this on the Examples page, but it didn't work.

  • Selected the select element in the "Live search" example
  • Ran $0.dataset.tags = "true"
  • Ran jQuery($0).selectpicker("refresh");
  • Searched for a nonexistent value and hit Enter

Nothing happens.


I just wrote something similar (but fancier) to this, and wanted to know if the plugin already/natively supports this behaviour. Came across this, but this does not seem to be documented.

@Organizer21
Copy link

+1 for this being a long overdue feature.

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.

None yet

4 participants