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

Method _handleClick

src/cdk/menu/menu-item.ts:186–193  ·  view source on GitHub ↗

Handles click events on the item.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

184
185 /** Handles click events on the item. */
186 protected _handleClick(event: MouseEvent) {
187 if (this.disabled) {
188 event.preventDefault();
189 event.stopPropagation();
190 } else {
191 this.trigger();
192 }
193 }
194
195 /**
196 * Handles keyboard events for the menu item, specifically either triggering the user defined

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.95

Tested by

no test coverage detected