1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-25 18:56:50 +02:00

clear search input after submit

This commit is contained in:
EnzoVezzaro 2022-02-14 10:49:07 +01:00
parent fc1f396c96
commit 93dd57ae0b

View File

@ -54,6 +54,11 @@ export default function SearchBar({
'tags'
])
router.push(`${url}&text=${urlEncodedValue}`)
// clear input after search
setTimeout(() => {
setValue('')
}, 100)
}
function handleChange(e: ChangeEvent<HTMLInputElement>) {