Sha256: e75d2ca55bb2e33354c134ac27975edd7c2284b3674b669d889602060b4b3407
Contents?: true
Size: 296 Bytes
Versions: 18
Compression:
Stored size: 296 Bytes
Contents
export function getEventTarget(event) { if (typeof event.composedPath === 'function') { const compTarget = event.composedPath()[0]; if (compTarget) { return compTarget; } if (event.path && event.path[0]) { return event.path[0]; } } return event.target; }
Version data entries
18 entries across 18 versions & 2 rubygems