-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bootstrap 5 support #2505
Comments
Looks like this has to do with Bootstrap 5 dropping jQuery, so some of the variables/methods will have to be accessed differently. |
@caseyjhol are there any plans to support Bootstrap 5 ? |
Originally posted by @caseyjhol in #2228 (comment) |
Making this the thread to discuss Bootstrap 5 support. |
Do you plan add suopport bootstrap 5? |
bootstrap 5 needs you |
There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion. TypeError: Cannot read property 'Constructor' of undefined |
Yes, I'm working on this. twbs/bootstrap#30267 is causing me some issues currently, as I can't add a click listener to the button. |
Eagerly awaiting BS5 support! |
I would also really like bootstrap 5 support. Had to disable the bootstrap-select for now :( |
Same here! |
Commenting to subscribe to notifications ("watch") this issue. Apologies if there is some other way to do so, but I couldn't figure it out. |
Eagerly waiting for bootstrap 5 support. Had to also disable the bootstrap-select :( |
Hi guys ! Untill the new version is out, you can use the CSS for the Bootstrap 5 version and the JS for the 4.6. That will ensure the bootstrap-select is working. I've just tested that ! Hope it helps you. |
For me that breaks my navbar dropdowns. |
Yeap, some things will happen as the JS will no longer match the CSS. I'm not using too much of the Bootstrap JS, or dynamic elements, only the grid and general CSS. I preffer to build my own responsive navigation and modals. |
This is close, but I'm unable to add click events on the button until twbs/bootstrap#30267 is resolved. |
Seems a PR (twbs/bootstrap#33442) fixing it has been merged, so that's good news at least. |
Released in v1.14.0-beta2! jQuery is still required. You must use Bootstrap v5.0.0-beta3 or later. |
Hey Casey, just some small fix to support BS5's modal: 1162: change to
Simply change class from Cheers thanks for fixing it for BS5! |
Doesn’t seem to work for me either. |
bootstrap-select v1.14.0-beta2 does not show drop-down options using keyboard navigation (no mouse click) with Bootstrap v5.1.3: https://plnkr.co/edit/53lQjla5NiVGPuL0?preview Oh, sorry! There is already an issue about this: #2665 |
Hello everyone and want to say thank you for your js library, I'm not sure if I'm on the right place but I would like to report one 1 bug with groups selectpicker. Options for groups generated from the first group. So if we will have options like this
We will don't see options 'Corn' and 'Carrot'. https://plnkr.co/edit/vZ9xghMuDhHFJKMc?preview I Will be appreciative if somebody can take a look at that, I also will try to see if I can fix this problem and will share with you a solution if I will find it. Thanks |
I found where is the problem. the problem in line 1770 in this code please replace to An example of code you can find here: |
For anyone looking for cdn hosted file with fix applied (tested with bootstrap 5.0.1): |
That is working for me, thanks. |
Hi , any progress on version 1.14 stable ? Thanks 😄 |
@fabienwnklr I'm working on it yes. |
Hi @NicolasCARPi any chance we can speed things up a little? I know this probably isn't your main concern right now, but apparently a lot of people depend on it. I'm willing to throw in a 100 Euro donation and maybe someone else would like to chip in as well? |
Hello @cspeer, you're correct, it's not my main concern, but it's still on my radar. The thing is that I started hacking the code and removing old IE hacks so code gets more fluid and easier to grasp/fix bugs, but @caseyjhol wanted to keep IE support for the time being (and he is right, as it's a breaking change). I really want to push for more frequent updates, to keep the ball rolling, but I'm not in charge here, see #2228 (comment). Maybe @caseyjhol can reconsider releasing a beta even without the fix he's working on? (after all, it is a BETA). If money is burning your hand, know that donations are appreciated ;) But I can't ensure anything, as I don't have all the cards in hand. |
@cspeer just thought I'd let you know, I use both bootstrap 5 and 4 together, 5 for most of my site, 4 only for bootstrap-select and it seems to work perfectly. I tried the beta version with bootstrap 5 but it had bugs that would've affected users if I had pushed it to production, so I decided to use the stable version with bootstrap 4 instead. Node.js allows you to use multiple versions of the same package. |
@NicolasCARPi Thanks for the speedy reply. I'd definitely be in favour of releasing a new beta ;) but for the time being, is there a dev branch that I could try? I didn't find one. @therealsujitk Interesting idea. But if I'm understanding correctly, you'd use bs4 instead of bs5 on pages that require bs-select, right? I don't think that would work for me though, as the rest of the site very much depends on bs5. Switching to bs4 just on that one page, would break functionality, I'm afraid. Thanks though! |
Basically bootstrap 5 CSS + bootstrap 5 JS + bootstrap 4 JS (In that order). In our case, we have a single page. This might have conflicts, not sure, but in our case it didn't. Bootstrap 5 is imported here and Bootstrap 4 JS is imported here. |
sorry to insist.. but any progress ? :) i can contribute if necessary.. good luck :) |
@caseyjhol Is there any progress or update on Bootstrap 5 support? Can you please help with this? |
Thank you, working perfectly for me |
@caseyjhol It isn't working for me using Bootstrap v5.2.2 and jQuery v3.6.1 The dropdown list doesn't show. DEMO LINK: https://jsfiddle.net/theAccountant/baf17pys/3/
|
@steven7mwesigwa did you ever get this working? |
Just checking in to see if there's any update on bootstrap5 support. |
I have the same problem, Does anyone know how to make it work? |
You should use v1.14.0-beta3 |
It's highly misleading that the README states "Now with Bootstrap 5 support" despite the |
@nwalters512 It's unlikely this project will see another release. I've switched to https://tom-select.js.org/ with my project. |
I switched to https://github.com/Choices-js/Choices |
Have you tried this version? |
I think switching to another solution is the right thing todo, as I believe this project is very dead and has been for a long time. If I am wrong and the project is not dead, then could you please let me know the current status of the project? Even if this is abandoned, it a big undertaking to create and maintain code like this for free, so I would like to thank the author for their work. |
Trying to instantiate a new bootstrap select when using BS5 gives this error. I realize BS5 is still alpha but this is something to keep an eye on. Hopefully it is a simple fix in the constructor.
thanks
The text was updated successfully, but these errors were encountered: