-
Notifications
You must be signed in to change notification settings - Fork 48
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
Error with BS 5.3.0-aplha1 #75
Comments
"Quick fix"
to:
|
@apalfrey any chance this could be fixed in a release? |
Same issue with: |
Same here with 5.3.0 release, could you please publish a new release with the minor fix suggested by @LocalHeroPro (it works like a charm) ? |
Quick fix for bootstrap 5.3.0 See: apalfrey#75 (comment)
I just ran into this issue myself. Instead of editing the package files, I set the variable myself before including the package: $s2bs5-border-color: red;
@import '~select2-bootstrap-5-theme'; |
Replacing original color with red one is not a good solution. So correct quick fix is to add this line before importing
|
With $('#edtText').select2({
theme: "bootstrap-5",
width: $(this).data('width') ? $(this).data('width') : $(this).hasClass('w-100') ? '100%' : 'style',
placeholder: $(this).data('placeholder'),
}); <div class="col-2">
<input type="text" class="form-control" value="text" />
<div class="debug-border"></div>
<select type="text" class="form-control debug-border" id="edtText"></select>
<div class="debug-border"></div>
</div> ( attempted fixing css with replacing |
this fork is compatible with boostrap 5.3.1: https://github.com/g10f/select2-bootstrap-5-theme.git Edit: By working I mean that you need to compile the scss from the fork. would love to see this merged into the main repo |
Always broken in Bootstrap 5.3.2 |
You can just patch it like this : $s2bs5-border-color: $border-color;
@import "select2-bootstrap-5-theme/src/include-all"; |
The clear button shows, but doesn't really work in this version...any other options? I don't know how to compile CSS, so a completed css file would be awesome! |
this fixed for me, |
Steps to reproduce:
BS: 5.3.0-aplha1: https://getbootstrap.com/docs/5.3/migration/
select2: 4.1.0-rc.0
select2-bootstrap-5-theme: 1.3.0
The text was updated successfully, but these errors were encountered: