Skip to content

Commit 8401410

Browse files
committed
MC-35514: Can't create shipping label for existing order all JS components in sliding modal doesn't work.
1 parent 572d182 commit 8401410

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Shipping/view/adminhtml/templates/order/packaging

1 file changed

+3
-3
lines changed

app/code/Magento/Shipping/view/adminhtml/templates/order/packaging/grid.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="grid">
1313
<?php $randomId = rand(); ?>
1414
<div class="admin__table-wrapper">
15-
<table class="data-grid">
15+
<table id="packaging-data-grid-<?= /* @noEscape */ $randomId ?>" class="data-grid">
1616
<thead>
1717
<tr>
1818
<th class="data-grid-checkbox-cell">
@@ -123,9 +123,9 @@
123123
</table>
124124
<?php $scriptString = <<<script
125125
require(['jquery'], function ($) {
126-
$("table.data-grid").on('blur', 'td.custom-value input',
126+
$("#packaging-data-grid-{$randomId}").on('blur', 'td.custom-value input',
127127
function(){packaging.recalcContainerWeightAndCustomsValue(this)});
128-
$("table.data-grid").on('click', 'button[data-action="package-delete-item"]',
128+
$("#packaging-data-grid-{$randomId}").on('click', 'button[data-action="package-delete-item"]',
129129
function(){packaging.deleteItem(this)});
130130
});
131131
script;

0 commit comments

Comments
 (0)