We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37806d4 commit a609c94Copy full SHA for a609c94
src/utils/magic.js
@@ -69,7 +69,9 @@ export function updateChildren(root, valMap = {}) {
69
updateMap(valMap, child.nodeName);
70
child.setAttribute(
71
'data-key',
72
- `${child.nodeName}-${valMap[child.nodeName]}`
+ 'key' in child.dataset
73
+ ? child.dataset.key
74
+ : `${child.nodeName}-${valMap[child.nodeName]}`
75
);
76
}
77
if (child.nodeType === 3) {
0 commit comments