FIX: Enter submits form for hyperlink insert modal (#9190)

This commit is contained in:
Mark VanLandingham 2020-03-12 09:36:45 -05:00 committed by GitHub
parent d2bb127e2c
commit 8d90134d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{{#d-modal-body title="composer.link_dialog_title" class="insert-link"}} <form {{action "ok" on="submit"}}>
{{#d-modal-body title="composer.link_dialog_title" class="insert-link"}}
<div class="inputs"> <div class="inputs">
{{text-field {{text-field
value=linkUrl value=linkUrl
@ -34,9 +35,10 @@
<div class="inputs"> <div class="inputs">
{{text-field value=linkText placeholderKey="composer.link_optional_text" class="link-text"}} {{text-field value=linkText placeholderKey="composer.link_optional_text" class="link-text"}}
</div> </div>
{{/d-modal-body}} {{/d-modal-body}}
<div class="modal-footer"> <div class="modal-footer">
{{d-button class="btn-primary" label="composer.modal_ok" action=(action "ok")}} {{d-button class="btn-primary" label="composer.modal_ok" action=(action "ok") type="submit"}}
{{d-button class="btn-danger" label="composer.modal_cancel" action=(action "cancel")}} {{d-button class="btn-danger" label="composer.modal_cancel" action=(action "cancel")}}
</div> </div>
</form>