@micromag/core 0.3.713 → 0.3.726
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/es/components.js +4 -1
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -363,6 +363,7 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
363
363
|
fieldContext = _ref.fieldContext;
|
|
364
364
|
var fieldsManager = useFieldsManager();
|
|
365
365
|
var field = getFieldFromPath(name.split('.'), fields, fieldsManager);
|
|
366
|
+
var parentField = name.match(/\.[0-9]+$/) !== null ? getFieldFromPath(name.split('.').slice(0, -1), fields, fieldsManager) : null;
|
|
366
367
|
var _ref2 = field || {},
|
|
367
368
|
_ref2$type = _ref2.type,
|
|
368
369
|
type = _ref2$type === void 0 ? null : _ref2$type,
|
|
@@ -407,13 +408,15 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
407
408
|
className: className
|
|
408
409
|
}))) : null;
|
|
409
410
|
}
|
|
411
|
+
var _ref4 = parentField || {},
|
|
412
|
+
itemsProps = _ref4.itemsProps;
|
|
410
413
|
|
|
411
414
|
// Use field component with isForm props
|
|
412
415
|
return FieldComponent !== null ? /*#__PURE__*/React.createElement(FieldContextProvider, {
|
|
413
416
|
context: fieldContext
|
|
414
417
|
}, /*#__PURE__*/React.createElement(FieldComponent, Object.assign({
|
|
415
418
|
className: className
|
|
416
|
-
}, definitionProps, fieldProps, {
|
|
419
|
+
}, definitionProps, fieldProps, itemsProps, {
|
|
417
420
|
isForm: true
|
|
418
421
|
}, formProps))) : null;
|
|
419
422
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.726",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"access": "public",
|
|
146
146
|
"registry": "https://registry.npmjs.org/"
|
|
147
147
|
},
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "21ce20325c59c5fc20628d918093fcb852bf75b9"
|
|
149
149
|
}
|