Elementor popup not closing on anchor link

Elementor popup not closing on anchor link

Yap, it is not closing without this code. Add HTML widget in popup free space, and it will close for sure.

<script>
jQuery(function($){
$(document).on(‘click’,’.elementor-location-popup a’, function(event){
elementorProFrontend.modules.popup.closePopup( {}, event);
});
});
</script>

Twitter
Facebook
LinkedIn
Telegram
WhatsApp
Email