diff --git a/src/lib/menu/menu.scss b/src/lib/menu/menu.scss index e944496b563..f3e6d879843 100644 --- a/src/lib/menu/menu.scss +++ b/src/lib/menu/menu.scss @@ -15,6 +15,13 @@ $mat-menu-border-radius: 2px !default; max-height: calc(100vh - #{$mat-menu-item-height}); border-radius: $mat-menu-border-radius; + // Prevent the user from interacting while the panel is still animating. + // This avoids issues where the user could accidentally open a sub-menu, + // because of the `overlapTrigger` option. + &.ng-animating { + pointer-events: none; + } + @include cdk-high-contrast { outline: solid 1px; }