@steroidsjs/core 2.2.47 → 2.2.48
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/package.json +1 -1
- package/ui/form/Form/Form.js +2 -2
package/package.json
CHANGED
package/ui/form/Form/Form.js
CHANGED
|
@@ -160,9 +160,9 @@ function Form(props) {
|
|
|
160
160
|
// OnChange handler
|
|
161
161
|
react_use_1.useUpdateEffect(function () {
|
|
162
162
|
if (props.onChange) {
|
|
163
|
-
props.onChange(values);
|
|
163
|
+
props.onChange.call(null, values);
|
|
164
164
|
}
|
|
165
|
-
}, [props, values]);
|
|
165
|
+
}, [props.onChange, values]);
|
|
166
166
|
// OnSubmit handler
|
|
167
167
|
var onSubmit = react_1.useCallback(function (e) {
|
|
168
168
|
if (e === void 0) { e = null; }
|