Closed mignaway closed 2 years ago
if (!$(e.target).hasClass('book-navbar-popup-open') &&
!$(e.target).parents('.book-navbar-popup-open').length &&
$(e.target).closest($('.book-navbar-popup')).length == 0){
$('.book-navbar-popup').hide();
}
has fixed the problem, but click event on iframe doesn't work, once fixed the possibility to close popup also with the iframe click event the issue can be closed.
.book-navbar-popup-open class elements should work like this:
Achievement: script that hides .book-navbar-popup whenever you click on anything but .book-navbar-popup-open