If a button is not of type button, pressing enter inside an `<input>` inside a `<form>` without the action attribute will trigger the first available `<button>` as most browsers default the type of an unspecified button to submit. This commit also prevents d-editor-modal to be filled when it's hidden.
9 lines
253 B
Handlebars
9 lines
253 B
Handlebars
{{#unless hidden}}
|
|
{{yield}}
|
|
|
|
<div class="controls">
|
|
{{d-button class="btn-primary" label="composer.modal_ok" action=(action "ok")}}
|
|
{{d-button class="btn-danger" label="composer.modal_cancel" action=(action "cancel")}}
|
|
</div>
|
|
{{/unless}}
|