- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
4 lines
147 B
TypeScript
4 lines
147 B
TypeScript
export function getEventTarget<T extends EventTarget>(event: Event): T | null {
|
|
return (event.composedPath?.()[0] ?? event.target) as T | null
|
|
}
|