mobx-react-form
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -576,8 +576,4 @@ 'use strict'; | ||
}); | ||
this.onChange = (0, _mobx.action)(function (e) { | ||
_this.sync(e); | ||
}); | ||
this.onToggle = (0, _mobx.action)(function (e) { | ||
_this.sync(e); | ||
}); | ||
this.onChange = this.sync; | ||
this.onToggle = this.sync; | ||
this.onFocus = (0, _mobx.action)(function () { | ||
@@ -590,11 +586,14 @@ _this.$focus = true; | ||
}); | ||
this.onClear = (0, _mobx.action)(function (e) { | ||
this.onClear = function (e) { | ||
e.preventDefault(); | ||
_this.clear(true); | ||
}); | ||
this.onReset = (0, _mobx.action)(function (e) { | ||
}; | ||
this.onReset = function (e) { | ||
e.preventDefault(); | ||
_this.reset(true); | ||
}); | ||
this.onAdd = (0, _mobx.action)(function (e) { | ||
}; | ||
this.onAdd = function (e) { | ||
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -604,4 +603,5 @@ | ||
_this.add(key); | ||
}); | ||
this.onDel = (0, _mobx.action)(function (e) { | ||
}; | ||
this.onDel = function (e) { | ||
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -611,3 +611,3 @@ | ||
_this.del(path || _this.path); | ||
}); | ||
}; | ||
}, _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, '$label', [_mobx.observable], { | ||
@@ -614,0 +614,0 @@ enumerable: true, |
@@ -131,3 +131,7 @@ 'use strict'; | ||
var pathToStruct = function pathToStruct(path) { | ||
return (0, _trimEnd3.default)((0, _replace3.default)(path, new RegExp('[.]\\d($|.)', 'g'), '[].'), '.'); | ||
var struct = void 0; | ||
struct = (0, _replace3.default)(path, new RegExp('[.]\\d($|.)', 'g'), '[].'); | ||
struct = (0, _replace3.default)(struct, '..', '.'); | ||
struct = (0, _trimEnd3.default)(struct, '.'); | ||
return struct; | ||
}; | ||
@@ -134,0 +138,0 @@ |
{ | ||
"name": "mobx-react-form", | ||
"license": "MIT", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"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
1946273