@app-studio/web 0.8.13 → 0.8.15

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.
@@ -4837,7 +4837,7 @@
4837
4837
  */
4838
4838
  var Password = PasswordComponent;
4839
4839
 
4840
- var _excluded$z = ["children", "autoFocus", "initFocus"];
4840
+ var _excluded$z = ["children", "autoFocus", "initFocus", "onChange"];
4841
4841
  var FocusContext = /*#__PURE__*/React.createContext({
4842
4842
  active: false,
4843
4843
  focusNextInput: () => {},
@@ -4850,10 +4850,14 @@
4850
4850
  var {
4851
4851
  children,
4852
4852
  autoFocus = false,
4853
- initFocus
4853
+ initFocus,
4854
+ onChange = () => {}
4854
4855
  } = _ref,
4855
4856
  props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4856
4857
  var formik$1 = formik.useFormikContext();
4858
+ React.useEffect(() => {
4859
+ onChange(formik$1.values);
4860
+ }, [formik$1.values]);
4857
4861
  var inputRefs = React.useRef({});
4858
4862
  var inputNames = React.useRef([]);
4859
4863
  var setInputRef = (name, ref) => {
@@ -4956,7 +4960,6 @@
4956
4960
  };
4957
4961
  var handleBlur = () => {
4958
4962
  setFieldTouched(name, true);
4959
- // if(props.onBlur)props.onBlur();
4960
4963
  };
4961
4964
  var handleKeyPress = e => {
4962
4965
  if (e.key === 'Enter') {