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

Method _handleClick

src/material/menu/menu-trigger.ts:197–205  ·  view source on GitHub ↗

Handles click events on the trigger.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

195
196 /** Handles click events on the trigger. */
197 _handleClick(event: MouseEvent): void {
198 if (this.triggersSubmenu()) {
199 // Stop event propagation to avoid closing the parent menu.
200 event.stopPropagation();
201 this.openMenu();
202 } else {
203 this.toggleMenu();
204 }
205 }
206
207 /** Handles the cases where the user hovers over the trigger. */
208 private _handleHover() {

Callers

nothing calls this directly

Calls 3

triggersSubmenuMethod · 0.95
openMenuMethod · 0.95
toggleMenuMethod · 0.95

Tested by

no test coverage detected