Skip to content

Commit 4fd92e7

Browse files
committed
Issue #27925, moved the submit button to the inside of the <form>
Placing the submit button inside the `<form id="purchaseorder-form"...></form>` makes implicit submission possible
1 parent 40a7876 commit 4fd92e7

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

app/code/Magento/OfflinePayments/view/frontend/web/template/payment/purchaseorder-form.html

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,29 @@
4242
</div>
4343
</div>
4444
</fieldset>
45-
</form>
46-
<div class="checkout-agreements-block">
47-
<!-- ko foreach: $parent.getRegion('before-place-order') -->
48-
<!-- ko template: getTemplate() --><!-- /ko -->
49-
<!--/ko-->
50-
</div>
51-
<div class="actions-toolbar" id="review-buttons-container">
52-
<div class="primary">
53-
<button class="action primary checkout"
54-
type="submit"
55-
data-bind="
56-
click: placeOrder,
57-
attr: {title: $t('Place Order')},
58-
enable: (getCode() == isChecked()),
59-
css: {disabled: !isPlaceOrderActionAllowed()}
60-
"
61-
data-role="review-save">
62-
<span data-bind="i18n: 'Place Order'"></span>
63-
</button>
45+
46+
<div class="checkout-agreements-block">
47+
<!-- ko foreach: $parent.getRegion('before-place-order') -->
48+
<!-- ko template: getTemplate() --><!-- /ko -->
49+
<!--/ko-->
6450
</div>
65-
</div>
51+
52+
<div class="actions-toolbar" id="review-buttons-container">
53+
<div class="primary">
54+
<button class="action primary checkout"
55+
type="submit"
56+
data-bind="
57+
click: placeOrder,
58+
attr: {title: $t('Place Order')},
59+
enable: (getCode() == isChecked()),
60+
css: {disabled: !isPlaceOrderActionAllowed()}
61+
"
62+
data-role="review-save">
63+
<span data-bind="i18n: 'Place Order'"></span>
64+
</button>
65+
</div>
66+
</div>
67+
</form>
6668
</div>
6769
</div>
68-
70+

0 commit comments

Comments
 (0)