@@ -41,7 +41,7 @@ const SelectSigners = (props) => {
41
41
"X-Parse-Application-Id" : localStorage . getItem ( "parseAppId" ) ,
42
42
...token
43
43
} ;
44
- const searchEmail = inputValue ;
44
+ const searchEmail = inputValue ? inputValue : "" ;
45
45
const axiosRes = await axios . post ( url , { searchEmail } , { headers } ) ;
46
46
const contactRes = axiosRes ?. data ?. result || [ ] ;
47
47
if ( contactRes ) {
@@ -54,11 +54,9 @@ const SelectSigners = (props) => {
54
54
! signerObj . find ( ( item2 ) => item2 . objectId === item1 . objectId )
55
55
) ;
56
56
} ;
57
-
58
57
//get update signer's List if signersdata is present
59
58
const updateSignersList =
60
59
props ?. signersData && compareArrays ( res , props ?. signersData ) ;
61
-
62
60
const result = updateSignersList ? updateSignersList : res ;
63
61
setUserList ( result ) ;
64
62
return await result . map ( ( item ) => ( {
@@ -70,7 +68,6 @@ const SelectSigners = (props) => {
70
68
console . log ( "err" , error ) ;
71
69
}
72
70
} ;
73
-
74
71
return (
75
72
< div className = "h-full px-[20px] py-[10px] text-base-content" >
76
73
< div className = "w-full mx-auto p-[8px]" >
@@ -87,6 +84,7 @@ const SelectSigners = (props) => {
87
84
loadOptions = { loadOptions }
88
85
onChange = { handleOptions }
89
86
unstyled
87
+ onFocus = { ( ) => loadOptions ( ) }
90
88
classNames = { {
91
89
control : ( ) =>
92
90
"op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full h-full text-[11px]" ,
0 commit comments