Skip to content

fix: set the focus starting point without a fragment navigation - #16992

Open
Nic-Polumeyv wants to merge 3 commits into
client-focus-designfrom
client-focus-starting-point
Open

fix: set the focus starting point without a fragment navigation#16992
Nic-Polumeyv wants to merge 3 commits into
client-focus-designfrom
client-focus-starting-point

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #16982.

Firefox and WebKit drop the focus a frame after tabindex is removed rather than synchronously, so the two starting-point tests poll for <body> instead of reading activeElement once. The target now receives a focus/blur pair it never got from a fragment navigation, which is the trade-off teemingc named in #10856.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Sep 1, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 9a1d481:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/9a1d4811c0cb2f5a69bf982740f471e95516e7b8

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

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9a1d481

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

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5f2f2216-cba8-46ae-b79f-96525c4420c9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@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.

Set the sequential focus navigation starting point without location.replace

1 participant