@fto-consult/expo-ui 9.9.2 → 9.9.4
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "9.9.
|
3
|
+
"version": "9.9.4",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|
@@ -56,8 +56,6 @@ const SimpleSelect = React.forwardRef((props,ref)=>{
|
|
56
56
|
const items = React.useStableMemo(()=>{
|
57
57
|
const items = [];
|
58
58
|
selectedRef.current = null;
|
59
|
-
//let currentSelectedValue = value;
|
60
|
-
const isValueDifferent = !compare(defaultValue,value);
|
61
59
|
Object.map(menuItems,(item,index,_index)=>{
|
62
60
|
if(React.isValidElement(item) || !filter({items:menuItems,item,_index,index})) return null;
|
63
61
|
let backupItem = item;
|
@@ -84,16 +82,13 @@ const SimpleSelect = React.forwardRef((props,ref)=>{
|
|
84
82
|
}
|
85
83
|
mItem.content = content;
|
86
84
|
mItem.textContent = React.getTextContent(rText) || React.getTextContent(content);
|
87
|
-
if(
|
88
|
-
selectedRef.current = mItem;
|
89
|
-
//currentSelectedValue = defaultValue;
|
90
|
-
} else if(isSelected(itValue,index)){
|
85
|
+
if(isSelected(itValue,index)){
|
91
86
|
selectedRef.current = mItem;
|
92
87
|
}
|
93
88
|
items.push(mItem);
|
94
89
|
});
|
95
90
|
return items;
|
96
|
-
},[menuItems,
|
91
|
+
},[menuItems,value]);
|
97
92
|
React.useEffect(()=>{
|
98
93
|
if(compare(defaultValue,value)) {
|
99
94
|
return;
|