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

Method _getTargetHandle

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

Gets a handle that is the target of an event.

(event: Event)

Source from the content-addressed store, hash-verified

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

Callers 1

DragRefClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected