mobx-react-form
Advanced tools
Comparing version 1.13.18 to 1.13.19
@@ -207,5 +207,13 @@ 'use strict'; | ||
*/ | ||
init: (0, _mobx.action)(function (fields) { | ||
init: (0, _mobx.action)(function () { | ||
var $fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
(0, _set3.default)($this, 'fields', (0, _mobx.asMap)({})); | ||
$this.initFields({ fields: fields }); | ||
$this.state.initial.props.values = $fields; // eslint-disable-line | ||
$this.state.current.props.values = $fields; // eslint-disable-line | ||
$this.initFields({ | ||
fields: $fields || $this.state.struct() | ||
}); | ||
}), | ||
@@ -212,0 +220,0 @@ |
{ | ||
"name": "mobx-react-form", | ||
"license": "MIT", | ||
"version": "1.13.18", | ||
"version": "1.13.19", | ||
"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
1990559
14417