From 9cedc3ce9610a894781acec1ad167a98fc7d651b Mon Sep 17 00:00:00 2001 From: vibe-bot Date: Sat, 9 Aug 2025 21:27:02 +0200 Subject: [PATCH] Nightly: Rainbow-Flash fix React-Event verwenden (e.currentTarget) statt globalem event --- web/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 2d37d1d..b091923 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -587,11 +587,11 @@ export default function App() { /> )}
{ + onClick={async (e)=>{ // Rainbow-Flash für 1s im Rainbow-Theme try { if (theme === 'rainbow') { - const el = (event?.currentTarget as HTMLDivElement | undefined); + const el = (e.currentTarget as HTMLDivElement | undefined); if (el) { el.classList.add('rainbow-flash'); setTimeout(()=> el.classList.remove('rainbow-flash'), 1000);