mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
fix desynced input field. causing mobile usage issues
This commit is contained in:
parent
b08f514031
commit
f7ad9b67fa
2 changed files with 2 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,6 +17,7 @@ node_modules
|
|||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue