Problem with building blocks Off canvas menu

I have implemented the Block FULL SCREEN OFF CANVAS
building-blocks / blocks / overlay-nav-menu.html
In the case that the links are IDs within the same page (making a one page with Scroll), the overlay is not closed.,
It only works if the user clicks on the link and then on the X to close it.
Is there any way using JS or Jquery to close when you click on a link?
Thanks.

Solved…

very easy
$(’#offcanvas-full-screen’).foundation(‘close’);

Thank !!!