MCPcopy Index your code
hub / github.com/angular/components / _onTouchTargetClick

Method _onTouchTargetClick

src/material/checkbox/checkbox.ts:518–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516 }
517
518 _onTouchTargetClick() {
519 this._handleInputClick();
520
521 if (!this.disabled) {
522 // Normally the input should be focused already, but if the click
523 // comes from the touch target, then we might have to focus it ourselves.
524 this._inputElement.nativeElement.focus();
525 }
526 }
527
528 /**
529 * Prevent click events that come from the `<label/>` element from bubbling. This prevents the

Callers

nothing calls this directly

Calls 2

_handleInputClickMethod · 0.95
focusMethod · 0.65

Tested by

no test coverage detected