2
I’m with the following html code:
<button class="thumb-hearth pop" data-toggle="popover" title="Likes" data-placement="top" data-trigger="focus" data-content="Teste">
<i class="glyphicon glyphicon-heart"></i>
</button>
With the following JS:
$(document).ready(function(){
$('.pop').popover().click(function() {
setTimeout(function() {
$('.pop').popover('hide');
}, 1500);
});
});
However, there is no result of mine click action (DOM gets a change), but Popover does not appear, and when I consult the console, I see the following error:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
at a.MixItUp._processClick (mp-jquery.mixitup.min.js:14)
at HTMLLIElement.<anonymous> (mp-jquery.mixitup.min.js:14)
at HTMLLIElement.dispatch (mp-jquery.min.js:3)
at HTMLLIElement.r.handle (mp-jquery.min.js:3)
I have no idea where the error might be. What could I do to fix?
I managed to remove the error, however, Popover does not appear.
– Hitch Leonardo
You imported bootstrap.min.js ?
– Victor Eyer
Yes! @VME, imported
– Hitch Leonardo