Ion-anchor doesn't close menu

Is it correct that navigating with an ion-anchor doesn’t close automatically the side menu? or did I forgot an attribute?

<ion-anchor href="/" routerDirection="forward">
    <div>
       <app-logo></app-logo>
       <span text-uppercase>My app</span>
    </div>
</ion-anchor>

Solved by adding an extra click event on the anchor:

private closeMenu(): Promise<void> {
    return new Promise<void>(async (resolve) => {
      if (!document) {
        return;
      }

      const element: HTMLIonMenuElement = document.querySelector('ion-menu');

      if (!element) {
        resolve();
        return;
      }

      await element.close();

      resolve();
    });
  }