FIX: d-button should default type to button (#8217)

FIX: d-button should default type to button (#8217)

This will prevent unexpected behaviour of d-button being considered as a submit button.

diff --git a/app/assets/javascripts/discourse/components/d-button.js.es6 b/app/assets/javascripts/discourse/components/d-button.js.es6
index 2665e6e83b..950ddcff30 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: [

GitHub sha: 72822aa9