mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: d-button should default type to button (#8217)
This will prevent unexpected behaviour of d-button being considered as a submit button.
This commit is contained in:
@@ -7,6 +7,8 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
form: null,
|
form: null,
|
||||||
|
|
||||||
|
type: "button",
|
||||||
|
|
||||||
tagName: "button",
|
tagName: "button",
|
||||||
classNameBindings: [":btn", "noText", "btnType"],
|
classNameBindings: [":btn", "noText", "btnType"],
|
||||||
attributeBindings: [
|
attributeBindings: [
|
||||||
|
|||||||
Reference in New Issue
Block a user