Skip to content

Commit

Permalink
stop propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Nov 6, 2024
1 parent 0028a63 commit 44f6d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aipane/components/HeroComboPrompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ const HeroComboPrompts: React.FC<HeroComboPromptsProps> = ({ 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);
Expand Down

0 comments on commit 44f6d41

Please sign in to comment.