I'm working with the Bootstrap 4 documentation and I have this button code:
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on top
</button>
Also, there's a JavaScript method right below it:
$(function () {
$('[data-toggle="popover"]').popover({
container: 'body',
trigger: 'click',
})
})
However, when I check the HTML, I notice a new hidden div
<div class="popover fade top in"..
It seems to be hidden due to this CSS class:
.fade:not(.show){
opacity: 0;
}
If I remove this class, the popover shows up fine. Any suggestions on what might be causing this issue?