mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-21 15:56:35 +03:00
remove bug with text
This commit is contained in:
parent
6e9cdca56f
commit
e03d7f2969
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user