Skip to content

chore: give scroll and focus their own state and tests - #16983

Open
Nic-Polumeyv wants to merge 1 commit into
client-focus-modulefrom
client-focus-design
Open

chore: give scroll and focus their own state and tests#16983
Nic-Polumeyv wants to merge 1 commit into
client-focus-modulefrom
client-focus-design

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

On top of #16980: scroll.js owns the stored positions and the after-navigation scroll, focus.js owns focus and the popstate its hash jump fires, and the hash-fragment lookup is written once.

Two discovered bugs are also fixed:

  1. A focused SVG element is blurred before the DOM update like any HTML element
  2. the popstate fired while resetting focus no longer reaches app listeners.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 31, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 8081c8a:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/8081c8a99e8b4e2ac3d0799c1b25b3c165afeb8b

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16983

@changeset-bot

changeset-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8081c8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant