kopia lustrzana https://github.com/cheeaun/phanpy
Clear q URL when clear search field
rodzic
ef2f55457f
commit
b29e7ad1cb
|
@ -69,6 +69,11 @@ function Search() {
|
||||||
type="search"
|
type="search"
|
||||||
autofocus
|
autofocus
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
|
onSearch={(e) => {
|
||||||
|
if (!e.target.value) {
|
||||||
|
setSearchParams({});
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
<div class="header-side" />
|
<div class="header-side" />
|
||||||
|
|
Ładowanie…
Reference in New Issue