mobx-react-form
Advanced tools
Comparing version 1.13.14 to 1.13.15
@@ -23,2 +23,6 @@ 'use strict'; | ||
var _trimEnd2 = require('lodash/trimEnd'); | ||
var _trimEnd3 = _interopRequireDefault(_trimEnd2); | ||
var _get2 = require('lodash/get'); | ||
@@ -40,6 +44,2 @@ | ||
var _trimEnd2 = require('lodash/trimEnd'); | ||
var _trimEnd3 = _interopRequireDefault(_trimEnd2); | ||
var _isArray2 = require('lodash/isArray'); | ||
@@ -241,2 +241,3 @@ | ||
var $field = $this.select($fullPath, null, false); | ||
var $container = $this.container(path); | ||
@@ -254,8 +255,5 @@ if (!(0, _isNil3.default)($field) && !(0, _isNil3.default)(field)) { | ||
var cpath = (0, _trimEnd3.default)(path.replace(new RegExp('/[^./]+$/'), ''), '.'); | ||
var container = $this.select(cpath, null, false); | ||
if (!(0, _isNil3.default)(container)) { | ||
if (!(0, _isNil3.default)($container)) { | ||
// init filed into the container field | ||
container.initField(key, $fullPath, field, null, true); | ||
$container.initField(key, $fullPath, field, null, true); | ||
} | ||
@@ -287,2 +285,10 @@ | ||
container: function container() { | ||
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
var $path = path || $this.path || ''; | ||
var cpath = (0, _trimEnd3.default)($path.replace(new RegExp('/[^./]+$/'), ''), '.'); | ||
return $this.select(cpath, null, false); | ||
}, | ||
/** | ||
@@ -289,0 +295,0 @@ Get Fields Props |
{ | ||
"name": "mobx-react-form", | ||
"license": "MIT", | ||
"version": "1.13.14", | ||
"version": "1.13.15", | ||
"author": "Claudio Savino <claudio.savino@me.com> (https://twitter.com/foxhound87)", | ||
@@ -6,0 +6,0 @@ "description": "Automagically manage React forms state and automatic validation with MobX.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1947034
14144