MCPcopy Create free account
hub / github.com/angular/components / resetActiveItem

Method resetActiveItem

src/material/menu/menu.ts:427–429  ·  view source on GitHub ↗

* Resets the active item in the menu. This is used when the menu is opened, allowing * the user to start from the first option when pressing the down arrow.

()

Source from the content-addressed store, hash-verified

425 * the user to start from the first option when pressing the down arrow.
426 */
427 resetActiveItem() {
428 this._keyManager.setActiveItem(-1);
429 }
430
431 /**
432 * @deprecated No longer used and will be removed.

Callers

nothing calls this directly

Calls 1

setActiveItemMethod · 0.45

Tested by

no test coverage detected