mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-22 00:06: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) => {
|
const onEnter = (value:any) => {
|
||||||
dispatch(search(searchOptions))
|
dispatch(
|
||||||
|
search(
|
||||||
|
searchOptions.concat(
|
||||||
|
autoCompleteValue.length ?
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'type': 'All',
|
||||||
|
'value': autoCompleteValue
|
||||||
|
|
||||||
|
}
|
||||||
|
] : []
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return(
|
return(
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
options={getHints.map((el)=>el.value)}
|
options={getHints.map((el)=>el.value)}
|
||||||
onSelect={onSelect as any}
|
onSelect={onSelect as any}
|
||||||
value={autoCompleteValue}
|
value={autoCompleteValue}
|
||||||
onChange={(e)=>setAutoCompleteValue(e)}
|
onChange={(e: any)=>setAutoCompleteValue(e)}
|
||||||
// onSearch={handleSearch}
|
// onSearch={handleSearch}
|
||||||
>
|
>
|
||||||
<Input.Search prefix={tags}
|
<Input.Search prefix={tags}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user