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

Function _ownsMenu

src/material/menu/menu-trigger-base.ts:484–486  ·  view source on GitHub ↗

* Determines whether the trigger owns a specific menu panel, at the current point in time. * This allows us to distinguish the case where the same panel is passed into multiple triggers * and multiple are open at a time.

(menu: MatMenuPanel)

Source from the content-addressed store, hash-verified

482 * and multiple are open at a time.
483 */
484 private _ownsMenu(menu: MatMenuPanel): boolean {
485 return PANELS_TO_TRIGGERS.get(menu) === this;
486 }
487
488 /**
489 * Detect if the trigger element is aria-disabled, indicating it should behave as

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected