neo.mjs 6.6.3 → 6.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -236,12 +236,13 @@ const DefaultConfig = {
|
|
236
236
|
useVdomWorker: true,
|
237
237
|
/**
|
238
238
|
* buildScripts/injectPackageVersion.mjs will update this value
|
239
|
-
* @default '6.6.
|
239
|
+
* @default '6.6.5'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '6.6.
|
244
|
+
version: '6.6.5'
|
245
|
+
};
|
245
246
|
|
246
247
|
Object.assign(DefaultConfig, {
|
247
248
|
/**
|
package/src/util/VDom.mjs
CHANGED
@@ -341,7 +341,8 @@ class VDom extends Base {
|
|
341
341
|
}
|
342
342
|
|
343
343
|
/**
|
344
|
-
* Neo.vdom.Helper will create ids for each vnode
|
344
|
+
* Neo.vdom.Helper will create ids for each vnode which does not already have one,
|
345
|
+
* so we need to sync them into the vdom.
|
345
346
|
* @param {Neo.vdom.VNode} vnode
|
346
347
|
* @param {Object} vdom
|
347
348
|
*/
|
@@ -350,7 +351,9 @@ class VDom extends Base {
|
|
350
351
|
let childNodes = vdom.cn,
|
351
352
|
cn, i, len;
|
352
353
|
|
353
|
-
|
354
|
+
// we only want to change vdom ids in case there is not already an own id
|
355
|
+
// (think of adding & removing nodes in parallel)
|
356
|
+
if (!vdom.id && vnode.id) {
|
354
357
|
vdom.id = vnode.id;
|
355
358
|
}
|
356
359
|
|