linear-react-components-ui 0.4.76-beta.5 → 0.4.76-beta.6
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/lib/form/index.js +4 -2
- package/package.json +1 -1
package/lib/form/index.js
CHANGED
|
@@ -153,7 +153,9 @@ var Form = function Form(_ref) {
|
|
|
153
153
|
name = _e$target.name,
|
|
154
154
|
value = _e$target.value;
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
_lodash["default"].set(data, name, value);
|
|
157
|
+
|
|
158
|
+
var newData = _extends({}, data);
|
|
157
159
|
|
|
158
160
|
if (context) {
|
|
159
161
|
var onChangedData = context.onChangedData;
|
|
@@ -241,7 +243,7 @@ var Form = function Form(_ref) {
|
|
|
241
243
|
handlerSubmit(onFormSubmit);
|
|
242
244
|
if (handlerReset) handlerReset(onReset);
|
|
243
245
|
if (handlerValidates) handlerValidates(checkIsValid);
|
|
244
|
-
}, []);
|
|
246
|
+
}, [data]);
|
|
245
247
|
(0, _react.useEffect)(function () {
|
|
246
248
|
if (securityBeforeUnload) {
|
|
247
249
|
if (context) context.setSecurityBeforeUnload(true);
|