Gets a handle that is the target of an event.
(event: Event)
| 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( |