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

[Bug] Select2 Multiple Not working #44

Open
rpenav91 opened this issue May 22, 2021 · 10 comments
Open

[Bug] Select2 Multiple Not working #44

rpenav91 opened this issue May 22, 2021 · 10 comments

Comments

@rpenav91
Copy link

Version

1.2.1

Reproduction link

https://demos.creative-tim.com/argon-dashboard-pro/docs/plugins/dropdown.html

Operating System

OS / Windows

Device

Apple Macbook Pro / DELL Latitude

Browser & Version

Chrome 90

Steps to reproduce

  1. When initializing a select with multiple="multiple" select2 is being initialized
  2. When you try to filter an option no searchable input
  3. Master Select not searchable also

What is expected?

Select2 with multiple items

What is actually happening?

Multiple Select2 is being initialized but you can't search or apply filters


Solution

Additional comments

@rarestoma
Copy link
Contributor

Hi @rpenav91,

Thank you for working with our products.

Can you please give me the code that you tried so I can check this and see what happens?

Thank you,
Rares

@lukaszmarcinkowski
Copy link

Hi @rarestoma & @rpenav91 ,
I have the same problem with a multiple option.

Select2 has option - Dynamic option creation which is also works with multiple option

For example code:

<select class="form-control select optional select-tags select2-hidden-accessible" multiple="multiple" name="item[tags][]" id="item_tags" data-select2-id="item_tags" tabindex="-1" aria-hidden="true">
  <option value="tag_1" data-select2-id="8">tag_1</option>
  <option value="tag_2" data-select2-id="9">tag_2</option>
  <option value="tag_3" data-select2-id="10">tag_3</option>
</select>

By running initializer:
$(".select-tags").select2({ tags: true });

it should works like shown in Select2 example. Using argon it is not working.

@rarestoma
Copy link
Contributor

Hi @lukaszmarcinkowski,

Thank you for working with our products.

Did you try our tags input plugin available here: https://demos.creative-tim.com/argon-dashboard-pro/docs/plugins/tags.html? I think it may help you.

Thank you,
Rares

@lukaszmarcinkowski
Copy link

Hi @rarestoma

Yes i found tags plugin for input but it has only 50% functionality I've need to.
I would like to add tags by choose from select (from existing list) or create a new one by typing.

Is is possible to fix it?

Regards

@lukaszmarcinkowski
Copy link

@rarestoma is it possible to an answer for this issue? I am waiting for this more than 3 months...

@rarestoma
Copy link
Contributor

Hi @lukaszmarcinkowski,

Sorry for my late response. We added it to the 'to do' list for the next update.

Another solution would be the multiple dropdowns available here: https://demos.creative-tim.com/argon-dashboard-pro/docs/plugins/dropdown.html.

You can also find more examples here: https://select2.org/placeholders.

Please let me know if it works.

Thank you,
Rares

@lukaszmarcinkowski
Copy link

Hi @rarestoma

Unfortunately, it doesn't work for me, because I need dynamic option creation which can be typed by the user or chosen from the dropdown list (excellent will be with the search option).

So it seems I need to wait for the update. When I can expect it to be available?

@rarestoma
Copy link
Contributor

Hi @lukaszmarcinkowski,

We are currently working on a new update and we hope we will release it in about 1 month.

Thank you,
Rares

@lpheglund
Copy link

Using Django the form-control removes the options made in the model.

When will this fix be available? I can see that this tread is very old!! Not very promising for a PRO subscription

@AdrianGos
Copy link

Any updates on this?

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

No branches or pull requests

5 participants