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.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! aport-tools v4.4.
|
1
|
+
/*! aport-tools v4.4.45 | ISC */
|
2
2
|
import React, { useContext, useState, createContext, useRef, useEffect, useMemo, useCallback } from 'react';
|
3
3
|
import { StyleSheet, Text as Text$1, Animated, View, TouchableOpacity, Image, TextInput, Modal, Pressable, FlatList, Keyboard, Platform, Alert, ActivityIndicator } from 'react-native';
|
4
4
|
import { ThemeContext } from 'aport-themes';
|
@@ -671,7 +671,7 @@ var TextArea = function TextArea(_a) {
|
|
671
671
|
isFirstRender.current = false;
|
672
672
|
if (firstValue !== undefined) {
|
673
673
|
setInternalValue(firstValue);
|
674
|
-
setFormValue(name, firstValue);
|
674
|
+
setFormValue(name, firstValue, firstValue); // Pass firstValue here
|
675
675
|
} else {
|
676
676
|
setInternalValue(formValues[name] || "");
|
677
677
|
}
|
@@ -806,11 +806,11 @@ var InputList = function InputList(_a) {
|
|
806
806
|
useEffect(function () {
|
807
807
|
if (multi) {
|
808
808
|
setSelectedOptions(initialSelections);
|
809
|
-
setFormValue(name, initialSelections);
|
809
|
+
setFormValue(name, initialSelections, initialSelections);
|
810
810
|
} else {
|
811
811
|
var singleValue = initialSelections[0] || null;
|
812
812
|
setSelectedOptions(singleValue);
|
813
|
-
setFormValue(name, singleValue);
|
813
|
+
setFormValue(name, singleValue, singleValue);
|
814
814
|
}
|
815
815
|
}, [firstValue, multi, initialSelections]);
|
816
816
|
// Handle option selection
|
@@ -1071,7 +1071,7 @@ var InputCheck = function InputCheck(_a) {
|
|
1071
1071
|
});
|
1072
1072
|
});
|
1073
1073
|
setSelectedValues(initialSelectedValues);
|
1074
|
-
setFormValue(name, initialSelectedValues); // Update form context
|
1074
|
+
setFormValue(name, initialSelectedValues, initialSelectedValues); // Update form context
|
1075
1075
|
isFirstRender.current = false; // Prevent subsequent updates
|
1076
1076
|
}
|
1077
1077
|
}, [firstValue, name, options, setFormValue]);
|
@@ -1203,7 +1203,7 @@ var InputAttach = function InputAttach(_a) {
|
|
1203
1203
|
useEffect(function () {
|
1204
1204
|
if (!isInitialized.current) {
|
1205
1205
|
setSelectedFiles(firstValue);
|
1206
|
-
setFormValue(name, firstValue); //
|
1206
|
+
setFormValue(name, firstValue, firstValue); // Pass firstValue here
|
1207
1207
|
isInitialized.current = true;
|
1208
1208
|
}
|
1209
1209
|
}, [firstValue, name, setFormValue]);
|