mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-30 23:18:47 +00:00
push location on search bar focus instead of replace
This commit is contained in:
parent
3ab7bab0c0
commit
cd28ef49f0
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const SearchBar = React.memo(({ className }) => {
|
|||
}, [locationHash]);
|
||||
const onQueryInputFocus = React.useCallback(() => {
|
||||
if (!active) {
|
||||
window.location.replace('#/search');
|
||||
window.location = '#/search';
|
||||
}
|
||||
}, [active]);
|
||||
const onQueryInputSubmit = React.useCallback(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue