@app-studio/web 0.8.13 → 0.8.14
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/dist/components/Formik/Formik.Form.d.ts +1 -1
- package/dist/web.cjs.development.js +8 -3
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +8 -3
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +8 -3
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +2 -3
package/dist/web.esm.js
CHANGED
|
@@ -4843,7 +4843,7 @@ var PasswordComponent = _ref => {
|
|
|
4843
4843
|
*/
|
|
4844
4844
|
var Password = PasswordComponent;
|
|
4845
4845
|
|
|
4846
|
-
var _excluded$z = ["children", "autoFocus", "initFocus"];
|
|
4846
|
+
var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
|
|
4847
4847
|
var FocusContext = /*#__PURE__*/createContext({
|
|
4848
4848
|
active: false,
|
|
4849
4849
|
focusNextInput: () => {},
|
|
@@ -4856,10 +4856,16 @@ var FormikForm = _ref => {
|
|
|
4856
4856
|
var {
|
|
4857
4857
|
children,
|
|
4858
4858
|
autoFocus = false,
|
|
4859
|
-
initFocus
|
|
4859
|
+
initFocus,
|
|
4860
|
+
onChange
|
|
4860
4861
|
} = _ref,
|
|
4861
4862
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
4862
4863
|
var formik = useFormikContext();
|
|
4864
|
+
useEffect(() => {
|
|
4865
|
+
if (onChange) {
|
|
4866
|
+
onChange(formik.values);
|
|
4867
|
+
}
|
|
4868
|
+
}, [formik.values, onChange]);
|
|
4863
4869
|
var inputRefs = useRef({});
|
|
4864
4870
|
var inputNames = useRef([]);
|
|
4865
4871
|
var setInputRef = (name, ref) => {
|
|
@@ -4962,7 +4968,6 @@ var useFormikInput = _ref => {
|
|
|
4962
4968
|
};
|
|
4963
4969
|
var handleBlur = () => {
|
|
4964
4970
|
setFieldTouched(name, true);
|
|
4965
|
-
// if(props.onBlur)props.onBlur();
|
|
4966
4971
|
};
|
|
4967
4972
|
var handleKeyPress = e => {
|
|
4968
4973
|
if (e.key === 'Enter') {
|