From 44f6d41eede06e73a04870961d93b550cf9326bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Wed, 6 Nov 2024 16:24:49 +0100 Subject: [PATCH] stop propagation --- src/aipane/components/HeroComboPrompts.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aipane/components/HeroComboPrompts.tsx b/src/aipane/components/HeroComboPrompts.tsx index 2aa3931..ff25219 100644 --- a/src/aipane/components/HeroComboPrompts.tsx +++ b/src/aipane/components/HeroComboPrompts.tsx @@ -88,10 +88,11 @@ const HeroComboPrompts: React.FC = ({ onChange, standalon }, [selectedValue, onChange]); useEffect(() => { - const resizeObserverErr = (e: any) => { + const resizeObserverErr = (e: ErrorEvent) => { if (e.message === "ResizeObserver loop completed with undelivered notifications.") { console.error("ResizeObserver loop error in HeroComboPrompts"); e.stopImmediatePropagation(); + e.stopPropagation(); } }; window.addEventListener("error", resizeObserverErr);