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

Method _getTargetHandle

src/cdk/drag-drop/drag-ref.ts:1628–1632  ·  view source on GitHub ↗

Gets a handle that is the target of an event.

(event: Event)

Source from the content-addressed store, hash-verified

1626
1627 /** Gets a handle that is the target of an event. */
1628 private _getTargetHandle(event: Event): HTMLElement | undefined {
1629 return this._handles.find(handle => {
1630 return event.target && (event.target === handle || handle.contains(event.target as Node));
1631 });
1632 }
1633
1634 /** Inserts the anchor element, if it's valid. */
1635 private _conditionallyInsertAnchor(

Callers 1

DragRefClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected