I have full calendar with some events. I have binded events from a json file. When i mouse hover on the particular event in the calendar it will show a popover. But when i move my mouse to the popover, the popover disappears. How to keep the popover visible when i move my mouse into the popover ? i have gone through other examples but didn't worked for me. popover bootstap
code :
$('#calendar').fullCalendar({
//$.fn.popover.defaults.container = 'body';
header: {
left: 'prev,next',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
contentHeight: 300,
height: 200 ,
eventRender: function(event, element) {
element.popover({
title: event.title1,
placement: 'auto',
html: true,
trigger: 'hover',
animation:'true',
content: event.msg,
container: 'body'
});
$('body').on('click', function(e) {
if (!element.is(e.target) && element.has(e.target).length === 0 && $('.popover').has(e.target).length === 0)
element.popover('hide');
});
},
events: eventData
});
}
});