remove bug with text

This commit is contained in:
ilia 2022-10-22 20:03:14 +03:00
parent 6e9cdca56f
commit e03d7f2969

View File

@ -53,14 +53,27 @@ export const Search: React.FC<{onData:(data:any)=>void}> = (props) =>{
}
const onEnter = (value:any) => {
dispatch(search(searchOptions))
dispatch(
search(
searchOptions.concat(
autoCompleteValue.length ?
[
{
'type': 'All',
'value': autoCompleteValue
}
] : []
)
)
)
}
return(
<AutoComplete
options={getHints.map((el)=>el.value)}
onSelect={onSelect as any}
value={autoCompleteValue}
onChange={(e)=>setAutoCompleteValue(e)}
onChange={(e: any)=>setAutoCompleteValue(e)}
// onSearch={handleSearch}
>
<Input.Search prefix={tags}