Skip to content

Commit e671784

Browse files
committed
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`.
1 parent 0411926 commit e671784

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/material/menu/menu.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ export class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuItem>, OnI
292292
this._keyManager = new FocusKeyManager(this._directDescendantItems)
293293
.withWrap()
294294
.withTypeAhead()
295-
.withHomeAndEnd();
295+
.withHomeAndEnd()
296+
.skipPredicate(item => item.disabled && !item.disabledInteractive);
297+
296298
this._keyManager.tabOut.subscribe(() => this.closed.emit('tab'));
297299

298300
// If a user manually (programmatically) focuses a menu item, we need to reflect that focus

0 commit comments

Comments
 (0)