From 48f70c9e47111ba0f77ee9fc84ad41bac51773a5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek <6197148+raccube@users.noreply.github.com> Date: Sat, 20 Aug 2022 19:37:51 +0200 Subject: [PATCH] Prevent default event handling on block anon option Co-authored-by: Andreas Nedbal --- app/javascript/retrospring/features/moderation/blockAnon.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/retrospring/features/moderation/blockAnon.ts b/app/javascript/retrospring/features/moderation/blockAnon.ts index 5d7abdbd..5c587300 100644 --- a/app/javascript/retrospring/features/moderation/blockAnon.ts +++ b/app/javascript/retrospring/features/moderation/blockAnon.ts @@ -5,6 +5,8 @@ import { showErrorNotification, showNotification } from "utilities/notifications import I18n from "retrospring/i18n"; export function blockAnonEventHandler(event: Event): void { + event.preventDefault(); + swal({ title: I18n.translate('frontend.mod_mute.confirm.title'), text: I18n.translate('frontend.mod_mute.confirm.text'),