I'm having trouble with tooltips not working properly.
The codebase I'm using is from this repository https://github.com/oguilleux/webpack-gulp-wordpress-starter-theme
If you need more details, feel free to reach out.
Here is my main.js file:
import PopperJs from "./_popper";
import BootstrapPlugins from "./_bootstrapplugins";
import TinySlider from './_tinySlider';
const App = {
/**
* App.init
*/
init() {
//scripts init
function initTinySlider() {
return new TinySlider();
}
function initPopperJs() {
return new PopperJs();
}
function initBootstrapPlugins(){
return new BootstrapPlugins();
}
initTinySlider();
initPopperJs();
initBootstrapPlugins();
}
};
document.addEventListener('DOMContentLoaded', () => {
App.init();
});
And here is my bootstrapplugins.js file:
import {Dropdown , Tooltip} from "bootstrap";
class BootstrapPlugins {
constructor() {
this.dropdownInit();
this.tooltipInit();
}
dropdownInit() {
return Dropdown ;
}
tooltipInit(){
return Tooltip ;
}
}
export default BootstrapPlugins;