fix desynced input field. causing mobile usage issues

This commit is contained in:
Jelle van Snik 2022-05-01 23:32:33 +02:00
parent b08f514031
commit f7ad9b67fa
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ node_modules
.env.development.local
.env.test.local
.env.production.local
.env
npm-debug.log*
yarn-debug.log*

View File

@ -13,6 +13,7 @@ export function useSearchQuery(): [MWQuery, (inp: Partial<MWQuery>) => void] {
const updateParams = (inp: Partial<MWQuery>) => {
const copySearch: MWQuery = { ...search };
Object.assign(copySearch, inp);
setSearch(copySearch);
history.replace(
generatePath(path, {
query: