-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Tooltip.destroy() is missing a null check for that.$element #21830
Comments
Support for v3 has mostly ceased. Please let us know if this issue affects v4. |
Hi. I am also facing the same issue. I am using the above solution. If it is not going to be in boosttrap 3.3.7, is it going to be in v4? |
I'm not sure this issue is present in V4, but as I said if this issue affects V4 let us know, thank you |
Not sure if it's worth mentioning, but downgrading to bootstrap-3.3.6.js resolved this exact issue for me, hope it gives others an option to try before moving to v4 :) |
Hi. I am also facing the same issue and this is my fix $('.tooltip').tooltip('destroy').remove(); |
This error is in the bootstrap.js file. To fix this error, open this file and look for lines 998-1004:
and change to:
Look for lines 1240-1253 lines:
and change to:
|
see twbs/bootstrap#21830 for more details
Just a comment on the error in case it still happens for other people: As can be seen in the code, |
Tooltip.destroy() is missing a null check for that.$element. Without it a
Uncaught TypeError: Cannot read property 'off' of null
may result.
Using: Chrome 55, JQuery 3.1.1, Bootstrap 3.3.7
I inserted the code below which fixed the issue:
This is how it looks in complete form:
NOTE: The line numbers in bootstrap-3.3.7.js may be slightly off as my local copy had the above change in place. The stack trace should be correct though.
The text was updated successfully, but these errors were encountered: