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

Method _checkDisabled

src/material/menu/menu-item.ts:151–156  ·  view source on GitHub ↗

Prevents the default element actions if it is disabled.

(event: Event)

Source from the content-addressed store, hash-verified

149
150 /** Prevents the default element actions if it is disabled. */
151 _checkDisabled(event: Event): void {
152 if (this.disabled) {
153 event.preventDefault();
154 event.stopPropagation();
155 }
156 }
157
158 /** Emits to the hover stream. */
159 _handleMouseEnter() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected