diff --git a/src/platform/web/ui/general/ErrorView.ts b/src/platform/web/ui/general/ErrorView.ts index f44361c3..eb1e7838 100644 --- a/src/platform/web/ui/general/ErrorView.ts +++ b/src/platform/web/ui/general/ErrorView.ts @@ -28,7 +28,8 @@ export class ErrorView extends TemplateView { override render(t: Builder, vm: ErrorViewModel): ViewNode { const submitLogsButton = t.button({ className: "ErrorView_submit", - onClick: disableTargetCallback(async () => { + onClick: disableTargetCallback(async evt => { + evt.stopPropagation(); if (await vm.submitLogs()) { alert("Logs submitted!"); } else { @@ -38,7 +39,10 @@ export class ErrorView extends TemplateView { }, "Submit logs"); const closeButton = t.button({ className: "ErrorView_close", - onClick: () => vm.close(), + onClick: evt => { + evt.stopPropagation(); + vm.close(); + }, title: "Dismiss error" }); return t.div({