Closed helloimela closed 4 years ago
Solved in #543
Event available to know when bootstrap jquery is ready, the event called bsReady
Example usage:
document.addEventListener('bsReady', function(event) {
CorporateUi.$('[data-toggle="tooltip"]').tooltip();
});
Describe the bug
When initated via CDN, CorporateUI.$ is undefined after DOM loaded. We need to know when CorporateUI.$ is ready to avoid error.
To Reproduce
Steps to reproduce the behavior:
CorporateUi.$('[data-toggle="tooltip"]').tooltip()
Expected behavior
Application is able to know when the jQuery is ready to be used.
Screenshots
If applicable, add screenshots to help explain your problem.
Version of Corporate-ui
4.0.2, scania theme 1.0.1
Framework and version
If you use any specific framework please provide information
Desktop information:
Please complete the following information