goto keepfocus not working in v1.0.0-next.196
#2853
Labels
bug
Something isn't working
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
router
Describe the bug
the focus is not kept on the input when binding input value to a URLSearchParams object and using
goto
with{ keepfocus: true }
to navigatebug started when switching from version
1.0.0-next.195
to1.0.0-next.196
Reproduction
1. initialise new svelte-kit skeleton project via
$ npm init svelte@next
2. update
package.json
so it reads"@sveltejs/kit": "1.0.0-next.195"
3. install dependencies using
$ npm install
4. go to
src/routes/index.svelte
and replace code with5. start development server using
$ npm run dev
6. navigate to
http://localhost:3000
and input a value into the<input />
field and observe how the url changes, while the focus is kept on the input7. stop the development server
8. update the "@sveltejs/kit" version to
1.0.0-next.196
and run$ npm install
again9. repeat steps (5.) and (6.) and observe how the input is not kept in focus
(i could provide a video or repository on this particular bug if you preferred)
Logs
no response
System Info
Severity
blocking an upgrade
Additional Information
no additional information
The text was updated successfully, but these errors were encountered: