Close period nav when clicking outside the menu.
Fix #10.