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

Placeholder beeing cut off? #77

Open
WalhallaS2 opened this issue Feb 7, 2018 · 3 comments
Open

Placeholder beeing cut off? #77

WalhallaS2 opened this issue Feb 7, 2018 · 3 comments

Comments

@WalhallaS2
Copy link

Hello,

I stumbled on an issue during a project build-up.
The placeholder on a multiselect is beeing cut off. Please have a look on the following screenshot:

select2bs

To reproduce this easily, I did create the following JSFiddle:
https://jsfiddle.net/f2gxy3sk/

Please have a look.

Thank you!

@caohanh1502
Copy link

caohanh1502 commented Mar 29, 2018

Hi. I think this is a known issue since 2012 when select2 with multiselect is initialized inside a hidden element.
Here's a pull request but still not in master yet: select2/select2#4898
There's also a temporary way to fix it using css:

.select2-container .select2-selection.select2-selection--multiple .select2-search.select2-search--inline .select2-search__field:not([placeholder='']) { width: 100% !important; margin-right: 100000px; }

@xander-mu
Copy link

.select2-container .select2-selection__rendered > *:first-child.select2-search--inline {
width: 100% !important;
}
.select2-container .select2-selection__rendered > *:first-child.select2-search--inline .select2-search__field {
width: 100% !important;
}

@phaelmoraes
Copy link

phaelmoraes commented Aug 21, 2019

I used that way: select2/select2#4323 (comment)

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

4 participants