Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ focus
Method
focus
src/material/menu/testing/menu-harness.ts:182–184 ·
view source on GitHub ↗
Focuses the menu item.
()
Source
from the content-addressed store, hash-verified
180
181
/** Focuses the menu item. */
182
async
focus(): Promise<void> {
183
return
(
await
this.host()).focus();
184
}
185
186
/** Blurs the menu item. */
187
async
blur(): Promise<void> {
Callers
nothing calls this directly
Calls
1
focus
Method · 0.65
Tested by
no test coverage detected