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);