fix(html): remove filter clear button
This commit is contained in:
parent
39285c4667
commit
caf8389ab7
|
|
@ -49,12 +49,12 @@ export const HeaderView: React.FC<React.PropsWithChildren<{
|
||||||
<form className='subnav-search' onSubmit={
|
<form className='subnav-search' onSubmit={
|
||||||
event => {
|
event => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
navigate(`#?q=${filterText ? encodeURIComponent(filterText) : ''}`);
|
navigate(filterText ? '#?' + new URLSearchParams({ q: filterText }) : '/');
|
||||||
}
|
}
|
||||||
}>
|
}>
|
||||||
{icons.search()}
|
{icons.search()}
|
||||||
{/* Use navigationId to reset defaultValue */}
|
{/* Use navigationId to reset defaultValue */}
|
||||||
<input type='search' spellCheck={false} className='form-control subnav-search-input input-contrast width-full' value={filterText} onChange={e => {
|
<input spellCheck={false} className='form-control subnav-search-input input-contrast width-full' value={filterText} onChange={e => {
|
||||||
setFilterText(e.target.value);
|
setFilterText(e.target.value);
|
||||||
}}></input>
|
}}></input>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue