Cannot call methods on tooltip prior to initialization
I found that declaring bootstrap.js before jquery-ui.js in my caused the problem.Make sure that jquery-ui.js is declared before bootstrap.js.
You'll need to prevent the jQuery UI library from overwriting jQuery.fn.tooltip
.
So cache this value before loading the jQuery UI library, then restore it afterward:
<script> let _tooltip = jQuery.fn.tooltip; // <--- Cache this</script><script src="/path/to/jquery-ui.min.js"></script> <!-- load jQuery UI --><script> jQuery.fn.tooltip = _tooltip; // <--- Then restore it here</script>
Declare jquery-ui.js before the bootstrap.js