-
-
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
Getting error in console for collapse JavaScript plugin #26891
Comments
Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details. |
I am now getting the same error on a basic collapse since going from 4.1.1 to 4.1.2. I'll put up a codepen when I get a chance. |
I found the issue. The change from 4.1.1 to 4.1.2 no longer allows using data-parent attribute when using collapse. I used the data-parent to remove a currently open element with the new element. Basically I was using accordion logic with the buttons. So removing data-parent takes the 'querySelectorAll' error away but I'll have multiple elements open at once. The below codepen shows the error. |
Our collapse works well with In your example, you mis placed your |
If the cause has been found and it is not a bug then this 'issue' should be closed |
From v4.1.1 to v4.1.2, bootstrap somehow has different behavior toward the
I think #26630 is responsible, which is reasonable. Solutions:
|
You're right @pouyana, setting an existing id as parent is the solution 😄 |
Thanks guys I have already fixed this :) |
If you are doing custom inclusion of the bootstrap javascript plugins separately, make sure that that you include util.js before collapse.js. That's what solved it for me. |
Hi, I am getting the same issue. I am able to remove it from the console, by deleting data-parent from the HTML code. But then only expandable functionality working and collapsing. I really need help to fix the issue, as it has to push tomorrow for my work. Please let me know anyone. I am using panel group and inside that tag containing href to target iv and data-toggle collapse. |
The problem is the code owrking fine at my side with error even and also on some of my team members. But this accordian not working on one of client and also one or two systems. |
Getting error in console for collapse JavaScript plugin
collapse not working as expected it was working 4 days before
Uncaught TypeError: Cannot read property 'querySelectorAll' of null
version used : https://www.npmjs.com/package/bootstrap/v/4.0.0-alpha.6
URL :https://www.equinox.com/clubs/canada
Click on accordion Bay Street
The text was updated successfully, but these errors were encountered: