From f2a0a3677d75721b3e1a87b4d93f57eb5ab44d41 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 22 Feb 2021 23:23:29 +0100 Subject: [PATCH] Requesting the preview caused Firefox to submit the form --- wcfsetup/install/files/js/WCF.Message.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index aa137f10d5..f8cf41363b 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -328,6 +328,8 @@ if (COMPILER_TARGET_DEFAULT) { * Reads message field input and triggers an AJAX request. */ _click: function (event) { + event.preventDefault(); + var $message = this._getMessage(); if ($message === null) { console.debug("[WCF.Message.Preview] Unable to access Redactor instance of '" + this._messageFieldID + "'"); -- 2.20.1