Angular: How to close mat-menu if keyboard focus goes out of the menu items

67 Views Asked by At

I have a code as shown as below,

stackblitz

I want to close the mat-menu when the focus goes out of the menu items.

When keyboard focus moves to the next element outside the menu, the menu should be closed.

How can I achieve that?

0

There are 0 best solutions below