I have 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, it does not show any results from my popOver in the click action (the DOM even receives a change) , but the popover does not appear, and when I query 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 you do to fix it?