Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 6b8427e

Browse files
KazuyaHaraj0k3r
authored andcommitted
fix-button-type
1 parent 9f66f02 commit 6b8427e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/js/templates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handleb
66

77
return " <li><button data-addon=\""
88
+ container.escapeExpression(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data}) : helper)))
9-
+ "\" data-action=\"add\" class=\"medium-insert-action\">"
9+
+ "\" data-action=\"add\" class=\"medium-insert-action\" type=\"button\">"
1010
+ ((stack1 = ((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"label","hash":{},"data":data}) : helper))) != null ? stack1 : "")
1111
+ "</button></li>\n";
1212
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
1313
var stack1;
1414

15-
return "<div class=\"medium-insert-buttons\" contenteditable=\"false\" style=\"display: none\">\n <button type=\"button\" class=\"medium-insert-buttons-show\"><span>+</span></button>\n <ul class=\"medium-insert-buttons-addons\" style=\"display: none\">\n"
15+
return "<div class=\"medium-insert-buttons\" contenteditable=\"false\" style=\"display: none\">\n <button class=\"medium-insert-buttons-show\" type=\"button\"><span>+</span></button>\n <ul class=\"medium-insert-buttons-addons\" style=\"display: none\">\n"
1616
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.addons : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
1717
+ " </ul>\n</div>\n";
1818
},"useData":true});

src/js/templates/core-buttons.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<button class="medium-insert-buttons-show" type="button"><span>+</span></button>
33
<ul class="medium-insert-buttons-addons" style="display: none">
44
{{#each addons}}
5-
<li><button data-addon="{{@key}}" data-action="add" class="medium-insert-action">{{{label}}}</button></li>
5+
<li><button data-addon="{{@key}}" data-action="add" class="medium-insert-action" type="button">{{{label}}}</button></li>
66
{{/each}}
77
</ul>
88
</div>

0 commit comments

Comments
 (0)