aport-tools 4.4.41 → 4.4.45

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.41 | ISC */
1
+ /*! aport-tools v4.4.45 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -692,7 +692,7 @@ var TextArea = function TextArea(_a) {
692
692
  isFirstRender.current = false;
693
693
  if (firstValue !== undefined) {
694
694
  setInternalValue(firstValue);
695
- setFormValue(name, firstValue);
695
+ setFormValue(name, firstValue, firstValue); // Pass firstValue here
696
696
  } else {
697
697
  setInternalValue(formValues[name] || "");
698
698
  }
@@ -827,11 +827,11 @@ var InputList = function InputList(_a) {
827
827
  React.useEffect(function () {
828
828
  if (multi) {
829
829
  setSelectedOptions(initialSelections);
830
- setFormValue(name, initialSelections);
830
+ setFormValue(name, initialSelections, initialSelections);
831
831
  } else {
832
832
  var singleValue = initialSelections[0] || null;
833
833
  setSelectedOptions(singleValue);
834
- setFormValue(name, singleValue);
834
+ setFormValue(name, singleValue, singleValue);
835
835
  }
836
836
  }, [firstValue, multi, initialSelections]);
837
837
  // Handle option selection
@@ -1092,7 +1092,7 @@ var InputCheck = function InputCheck(_a) {
1092
1092
  });
1093
1093
  });
1094
1094
  setSelectedValues(initialSelectedValues);
1095
- setFormValue(name, initialSelectedValues); // Update form context
1095
+ setFormValue(name, initialSelectedValues, initialSelectedValues); // Update form context
1096
1096
  isFirstRender.current = false; // Prevent subsequent updates
1097
1097
  }
1098
1098
  }, [firstValue, name, options, setFormValue]);
@@ -1224,7 +1224,7 @@ var InputAttach = function InputAttach(_a) {
1224
1224
  React.useEffect(function () {
1225
1225
  if (!isInitialized.current) {
1226
1226
  setSelectedFiles(firstValue);
1227
- setFormValue(name, firstValue); // Update form context
1227
+ setFormValue(name, firstValue, firstValue); // Pass firstValue here
1228
1228
  isInitialized.current = true;
1229
1229
  }
1230
1230
  }, [firstValue, name, setFormValue]);