Skip to content

Commit 166885b

Browse files
committed
Rename script x-ref="initialData" to data element for browser compliance
1 parent 28e3a4d commit 166885b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view/adminhtml/templates/form/field_type/entity_select.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $valueCode = $entitySelect->getValueCode();
4545
@keyup.esc="closeWrapper"
4646
data-value-code="<?= $escaper->escapeHtml($valueCode) ?>"
4747
>
48-
<script x-ref="initialData" type="text/x-loki-init"><?= /* @noEscape */ $entitySelect->getJsonData() ?></script>
48+
<data hidden x-ref="initialData" type="text/x-loki-init"><?= /* @noEscape */ $entitySelect->getJsonData() ?></data>
4949

5050
<div class="input-with-button">
5151
<input

0 commit comments

Comments
 (0)