From e671784be647174dee71d65cb09f77606e96c7d0 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sun, 30 Aug 2026 10:34:01 +0200 Subject: [PATCH] fix(material/menu): allow focus to land on disabledInteractive items Follow-up to #33693 that allows users to keyboard navigate to items that are `disabledInteractive`. --- src/material/menu/menu.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/material/menu/menu.ts b/src/material/menu/menu.ts index 9a76162a8611..15e3621fa654 100644 --- a/src/material/menu/menu.ts +++ b/src/material/menu/menu.ts @@ -292,7 +292,9 @@ export class MatMenu implements AfterContentInit, MatMenuPanel, OnI this._keyManager = new FocusKeyManager(this._directDescendantItems) .withWrap() .withTypeAhead() - .withHomeAndEnd(); + .withHomeAndEnd() + .skipPredicate(item => item.disabled && !item.disabledInteractive); + this._keyManager.tabOut.subscribe(() => this.closed.emit('tab')); // If a user manually (programmatically) focuses a menu item, we need to reflect that focus