From 72822aa93ff2ea46cb0da020eb76cde48d92e8d7 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 21 Oct 2019 09:42:19 +0200 Subject: [PATCH] FIX: d-button should default type to button (#8217) This will prevent unexpected behaviour of d-button being considered as a submit button. --- app/assets/javascripts/discourse/components/d-button.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/components/d-button.js.es6 b/app/assets/javascripts/discourse/components/d-button.js.es6 index 2665e6e83b0..950ddcff304 100644 --- a/app/assets/javascripts/discourse/components/d-button.js.es6 +++ b/app/assets/javascripts/discourse/components/d-button.js.es6 @@ -7,6 +7,8 @@ export default Ember.Component.extend({ form: null, + type: "button", + tagName: "button", classNameBindings: [":btn", "noText", "btnType"], attributeBindings: [