From 7f37e36241c324710422b0bb07380c232ccd32d9 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Tue, 18 May 2021 01:19:52 -0400 Subject: [PATCH] Avoid submitting forms with MarkdownButton Add type="button" to the component so that it won't submit if placed inside a form. Fixes https://github.com/flarum/core/issues/2875 --- extensions/markdown/js/src/forum/components/MarkdownButton.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/markdown/js/src/forum/components/MarkdownButton.js b/extensions/markdown/js/src/forum/components/MarkdownButton.js index 457380167..dce1378fa 100644 --- a/extensions/markdown/js/src/forum/components/MarkdownButton.js +++ b/extensions/markdown/js/src/forum/components/MarkdownButton.js @@ -11,6 +11,7 @@ export default class MarkdownButton extends Component { const button = (