mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 18:41:48 +01:00
fix desynced input field. causing mobile usage issues
This commit is contained in:
parent
b08f514031
commit
f7ad9b67fa
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 New Issue
Block a user