[Bug]: Modals - missing ErrorBoundary #1991

Closed
opened 2026-02-28 20:00:41 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @MatissJanis on GitHub (Mar 29, 2025).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

The Modals component is missing a wrapping ErrorBoundary. If any of the modals encounter an exception - this results in a fatal error crashing the entire page (user seems a blank white page).

Obviously this is not great..

How can we reproduce the issue?

Throw an exception in one of the modals on your dev server.

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @MatissJanis on GitHub (Mar 29, 2025). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? The `Modals` component is missing a wrapping `ErrorBoundary`. If any of the modals encounter an exception - this results in a fatal error crashing the entire page (user seems a blank white page). Obviously this is not great.. ### How can we reproduce the issue? Throw an exception in one of the modals on your dev server. ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the tech debtbug labels 2026-02-28 20:00:41 -06:00
Author
Owner

@koonweee commented on GitHub (Mar 30, 2025):

@MatissJanis any clarification on how to reprod? I tried throwing an error in a button's onclick but it does not crash the app

nvm, TIL event handlers don't trigger error boundaries. https://legacy.reactjs.org/docs/error-boundaries.html#how-about-event-handlers

@koonweee commented on GitHub (Mar 30, 2025): ~@MatissJanis any clarification on how to reprod? I tried throwing an error in a button's onclick but it does not crash the app~ nvm, TIL event handlers don't trigger error boundaries. https://legacy.reactjs.org/docs/error-boundaries.html#how-about-event-handlers
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#1991