title: How can I close the Foundation topbar menu when a link is clicked?
body: <p>I am using Zurb Foundation's fixed topbar on my single page site, and it contains anchor links to places within the page.  I would like it so that whenever a link inside the expanded mobile menu is clicked, the menu closes.  </p>
  
  <p>Currently, when a link is clicked, the page scrolls, but the menu is left open at the top of the page out of view.</p>
  
  <p>In a previous version of Foundation, I was able to reverse engineer the code and find a simple solution.  Since updating to 4.3.1 to fix another issue with the topbar, I am unable to find a solution due to my limited knowledge of javascript.</p>
  
  <p><a href="https://github.com/zurb/foundation/blob/master/js/foundation/foundation.topbar.js" rel="noreferrer">topbar</a></p>
  
  <p>It seems to me that if I could fire the event or function for menu closing when a link in the menu is clicked, it would be fixed.  Previously, I put my code that happened on a link click on line 261.</p>
  
  <p>When the mobile menu closes, .fixed is added to the div surrounding the topbar, while .expanded and .fixed are removed from the .topbar div.  </p>