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

🐛 Search Field of Select2Multiple are bugged #298

Open
RitchiS99 opened this issue Aug 30, 2024 · 3 comments
Open

🐛 Search Field of Select2Multiple are bugged #298

RitchiS99 opened this issue Aug 30, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@RitchiS99
Copy link

Bug Description

When I am adding a Select2MultipleWidget in a django-filters form, the search field is moved down, so it isn't in the select-box as expected. Hapenning with Standard theme and with select2-bootstrap-5 theme. Form is added with crispy forms.

image

Steps to Reproduce

  1. Add Select2MultipleWidget in a django-filters form.
  2. Include the filter-form with crispy forms.
  3. Watch the broken search field of Select2MultipleWidget

Expected Behavior

The search field shall look like this
image

@RitchiS99 RitchiS99 added the bug Something isn't working label Aug 30, 2024
@codingjoe
Copy link
Owner

Hi @RitchiS99,

Thank you for reaching out. However, this package merely does the Django integration and provides no alterations to the CSS code. Might I suggest reaching out to the team that maintains the Select2 page here: https://github.com/select2/select2/

Best
Joe

@codingjoe codingjoe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
@RitchiS99
Copy link
Author

Hi Joe, the problem is, that the issue is only happening with django-select2 and not with normal select2 like you can see in the picture.
I just let the fields the same and just change the call from

$(.django-select2).djangoSelect2(){}

to

$(.django-select2.).select2(){}

So the problem seems to be because of django-select2

@codingjoe
Copy link
Owner

Huh, interesting. Do you have any further information to go on or a sample project we could use to debug this issue further? Best, Joe

@codingjoe codingjoe reopened this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants