neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+16
View File
@@ -0,0 +1,16 @@
/**
* Copied from @base-ui/utils
*
* Gets the actual target of an event, using `composedPath()` to traverse
* shadow DOM boundaries.
*
* In shadow DOM, `event.target` may return the shadow host rather than the
* actual element that triggered the event. `composedPath()[0]` returns the
* true originating element.
*
* @param event - The event to get the target from.
* @returns The actual event target, or `null` if not available.
*/
export default function getEventTarget(event) {
return event.composedPath?.()[0] ?? event.target;
}