@fto-consult/expo-ui 8.18.5 → 8.18.6

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": "8.18.5",
3
+ "version": "8.18.6",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -46,7 +46,7 @@ class DropdownComponent extends AppComponent {
46
46
  },
47
47
  ___hasErrorSymbol : {value:uniqid(`${this.props.name||''}error-symbol-prop`)},
48
48
  hasNotValidSelectedValue : {value:()=>{
49
- return !!this[this.___hasErrorSymbol];
49
+ return this.isLoading()? false : !!this[this.___hasErrorSymbol];
50
50
  }},
51
51
  toggleHasNotValidSelectedValue : {value:(bool)=>{
52
52
  if(typeof bool =='boolean'){
@@ -900,7 +900,7 @@ class DropdownComponent extends AppComponent {
900
900
  if(renderTag){
901
901
  tagProps = defaultObj(tagProps);
902
902
  }
903
- error = error || this.hasNotValidSelectedValue()
903
+ error = error || this.hasNotValidSelectedValue() || false;
904
904
  if(error && selectedText && (!helperText || !React.isValidElement(helperText,true))){
905
905
  helperText = `Ce champ admet des valeurs par défaut invalide où innexistant dans la liste des éléments à sélectionner`;
906
906
  }