Elementor Mobile Menu not closing, after click, using anchors on a one page

Create an HTML widget, under elementor nav widget and add the code below:

<script>
jQuery(function($) {
 $('.elementor-item-anchor').click(function() {
     $('.elementor-menu-toggle.elementor-active').click();
});
});
</script>
 
Scroll to Top