0

I have a laravel project and I'm using Bootstrap 5 and the problem is tooltip is not working

I've tried many many ways that people suggested in Stackoverflow but none of them worked for me

Html:

<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="Home"> <li class="mitem"> <i class="fas fa-home" aria-hidden="true"></i> </li> </a>

JS:

require('./bootstrap')
require('../../node_modules/bootstrap/dist/js/bootstrap.bundle.min')

$(document).ready(function() {
    $('[data-bs-toggle=tooltip]').tooltip();
});

Bootstrap version:

"bootstrap": "^5.1.3",

I even tried without -bs- but it didn't work neither

Bootstrap is loaded and everything is working except tooltip

Alireza Behnamnik
  • 206
  • 1
  • 3
  • 18

0 Answers0