-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 v4.4.1 collapse doesn't work with jQuery v3.5.0 #30553
Comments
Not working for me as well, by mistake just created new issue. |
This comment has been minimized.
This comment has been minimized.
I have the same problem, in this case my navbar is not working anymore. It surely is the update to 3.5.0 which is causing the problem. |
I was actually just going to make a new issue to update jQuery to v3.5.0 in v4-dev. https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ I'll check now if we have any failing tests. |
So, it seems they will make a patch release to fix this behavior. @Johann-S do you think we should do anything in our code? I don't know when jQuery v4.0.0 will be out, but any fixes we make will probably be future proof. |
I was able to reproduce the error after updating to v3.5.0 and adapting our tests in #30559. |
For me, the console error says |
After some digging around, it seems this code exists since 2015: 872e56f Let's wait and see what the jQuery developers will say in jquery/jquery#4665 |
Can someone try #30559?
Our tests seem to pass there. We'll see if/when we can release v4.4.2, but until that happens or until jQuery releases a new patch version people should be careful with the v3.5.0 update. |
This comment has been minimized.
This comment has been minimized.
v3 is EOL. I doubt we'll backport this, sorry. |
in node_modules/bootsrap/dist/js/bootstrap.js line 1509 change
to
or use jquery 3.4.1 until twbs/bootstrap#30553 is fixed |
True I had trouble when I tried that but tests were broken due to other
jQuery changes.
I'll try again later in my branch.
…On Sun, Apr 12, 2020, 16:50 Alazar Kassahun ***@***.***> wrote:
if (!data && _config.toggle && /show|hide/.test(config))
should be
if (!data && _config.toggle && /show|hide/.test(_config))
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNM64H276MOT7E33PCLRMHBJVANCNFSM4MF4XAFA>
.
|
Nope, doesn't work because |
I've tried it multiple times and it's working for me. |
|
This comment has been minimized.
This comment has been minimized.
Yeah, but our test suite doesn't work. |
Everyone interested in this should follow our #30559 PR and the upstream jQuery issue jquery/jquery#4665. It seems the jQuery developers plan to release a fix for the error that is affecting us, but my plan is to also land #30559 for v4. |
Downgrade to Jquery 3.4.1 and work again, thanks. |
@yickson isn't work with me. "bootstrap": "^4.4.1",
"jquery": "^3.4.1",
"popper.js": "^1.16.1" in my console error TypeError: can't convert config to string main.js line 120 > eval:1508:52 |
Bootstrap 4.4.1 Not work with Jquery 3.4.1, unfortunately, I use bootstrap 3.3.7 with Jquery 3.4 by compatibility. |
Change it to Just remove the ‘^’ character |
@alazark94 thanks bruh!, work as fine |
This reverts commit 5d48fc5.
Try to change your v3.5.0 to 3.4.1, downgrade your jQuery |
I have the same issue with popover. With jQuery 3.4.1 it works and the |
jQuery 3.5.0 also won't work with Bootstrap 3.4.1. Dropdowns and collapse don't work. Reverted to jQuery 3.4.1 to make it work. |
Fixed in #30559. |
jQuery v3.5.1 was released a few hours ago. This should work with Bootstrap 4.x fine. |
Hello together,
after upgrade to jQuery 3.5.0 I'm getting an exception
TypeError: Cannot convert object to primitive value
while clicking to navbar-toggler button
It leads to the line
bootstrap/js/src/collapse.js
Line 346 in dca1ab7
Works fine with jQuery 3.4.1.
Any system and browser.
The text was updated successfully, but these errors were encountered: