Skip to content

Commit

Permalink
Fix popover onclick bug
Browse files Browse the repository at this point in the history
  • Loading branch information
metehaansever authored Feb 12, 2024
1 parent fbc6cf3 commit a6f5d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anvio/data/interactive/js/inspectionutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function getUrlVars() {
$(document).ready(function() {
$(window).on('click', function (e) {
//did not click a popover toggle or popover
if ($(e.target).data('toggle') !== 'popover'
if (!$(e.target).is('[data-toggle="popover"]')
&& !$(e.target).closest('.popover').length
&& $(e.target).parents('.popover.in').length === 0) {
$('.popover').popover('hide');
}
Expand Down

0 comments on commit a6f5d40

Please sign in to comment.