Whenever I open the popover for the first time, the image is not displayed correctly. How can I ensure that it always shows correctly?
Here is a link to the issue: https://jsfiddle.net/n2Lfro30/1/
Below is the button code causing the problem:
<button type="button" class="btn btn-primary" data-rel="popover" title="<strong>Heading</strong>" data-placement="right" data-content="<img src='https://picsum.photos/400'>"> Click me </button>
And here is the JavaScript code being used:
$(document).ready(function() {
$('[data-rel=popover]').popover({
html: true,
trigger: "hover"
});
})