mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
clear search input after submit
This commit is contained in:
parent
fc1f396c96
commit
93dd57ae0b
@ -54,6 +54,11 @@ export default function SearchBar({
|
|||||||
'tags'
|
'tags'
|
||||||
])
|
])
|
||||||
router.push(`${url}&text=${urlEncodedValue}`)
|
router.push(`${url}&text=${urlEncodedValue}`)
|
||||||
|
|
||||||
|
// clear input after search
|
||||||
|
setTimeout(() => {
|
||||||
|
setValue('')
|
||||||
|
}, 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleChange(e: ChangeEvent<HTMLInputElement>) {
|
function handleChange(e: ChangeEvent<HTMLInputElement>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user