2

searched for some time and didn't find an answer. I want the popover to have html content, to open on hover and be clickable. But if I set the trigger to 'manual', then the button is not displayed. Do I set the trigger to hover, then the popover is not clickable. How can I fix that? Here jsfiddle

$(document).popover({ 
trigger: 'manual', 
sanitize: false, 
html: true, 
animation: true, 
selector: '.myHover', 
container: '#bootstrap-container'})

.on('mouseenter', '.myHover', function () { 
const _this = this; 
$(this).popover("show"); 
$(".popover").on("mouseleave", function () { 
    $(_this).popover("hide"); }); })
.on('mouseleave', '.myHover', function () { 
    const _this = this; 
  setTimeout(function () { 
  if (!$('.popover:hover').length) { 
    $(_this).popover('hide'); } }, 
    300); 
}); 

Thank you.

Oliver
  • 79
  • 6
  • 1
    Does this answer your question? [HTML inside Twitter Bootstrap popover](https://stackoverflow.com/questions/13202762/html-inside-twitter-bootstrap-popover) – alotropico Jul 17 '20 at 10:34

0 Answers0