Skip to content

Commit 17414b8

Browse files
committed
Replace @ with x-on: and : with x-bind: when updating HTML attributes
1 parent 39f0a86 commit 17414b8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

view/base/templates/script/html-updater.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
});
1111

1212
newRoot.getAttributeNames().forEach(attributeName => {
13+
attributeName = attributeName.replace(/^@/, 'x-on:');
14+
attributeName = attributeName.replace(/^:/, 'x-bind:');
1315
root.setAttribute(attributeName, newRoot.getAttribute(attributeName));
1416
});
1517

0 commit comments

Comments
 (0)