neo.mjs 6.5.0 → 6.5.1

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.5.0'
23
+ * @member {String} version='6.5.1'
24
24
  */
25
- version: '6.5.0'
25
+ version: '6.5.1'
26
26
  }
27
27
 
28
28
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.5.0'
23
+ * @member {String} version='6.5.1'
24
24
  */
25
- version: '6.5.0'
25
+ version: '6.5.1'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -236,12 +236,12 @@ const DefaultConfig = {
236
236
  useVdomWorker: true,
237
237
  /**
238
238
  * buildScripts/injectPackageVersion.mjs will update this value
239
- * @default '6.5.0'
239
+ * @default '6.5.1'
240
240
  * @memberOf! module:Neo
241
241
  * @name config.version
242
242
  * @type String
243
243
  */
244
- version: '6.5.0'
244
+ version: '6.5.1'
245
245
  };
246
246
 
247
247
  Object.assign(DefaultConfig, {
@@ -313,11 +313,15 @@ class Container extends BaseContainer {
313
313
  */
314
314
  async setValues(values={}, suspendEvents=false) {
315
315
  let fields = await this.getFields(),
316
- fieldPaths = [];
316
+ fieldPaths = [],
317
+ path;
317
318
 
318
319
  // Grouped CheckBoxes & Radios can have the same path
319
320
  // => using NeoArray to ensure they only get added once
320
- fields.map(field => NeoArray.add(fieldPaths, field.getPath()));
321
+ fields.map(field => {
322
+ path = field.getPath();
323
+ path && NeoArray.add(fieldPaths, path)
324
+ });
321
325
 
322
326
  values = Neo.clone(values, true);
323
327
 
@@ -184,6 +184,13 @@ class Base extends Component {
184
184
  let me = this,
185
185
  path;
186
186
 
187
+ // fields could have formGroups, but no name.
188
+ // returning the namespace can confuse form.Container.adjustTreeLeaves(),
189
+ // since namespaces could be considered as field instances.
190
+ if (!me.name) {
191
+ return null
192
+ }
193
+
187
194
  if (!me.path) {
188
195
  path = me.formGroup ? me.formGroup.split('.') : [];
189
196