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.
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -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.
|
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.
|
244
|
+
version: '6.5.1'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/form/Container.mjs
CHANGED
@@ -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 =>
|
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
|
|
package/src/form/field/Base.mjs
CHANGED
@@ -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
|
|