Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] use defaults when no opts passed to router #2819

Merged
merged 2 commits into from
Nov 22, 2021
Merged

[fix] use defaults when no opts passed to router #2819

merged 2 commits into from
Nov 22, 2021

Conversation

benmccann
Copy link
Member

I noticed this in another code review

There are somethings we don't do when !opts. E.g. we don't do the document.body.focus();. I have no idea why this would be and it seems wrong

@changeset-bot
Copy link

changeset-bot bot commented Nov 17, 2021

🦋 Changeset detected

Latest commit: e1bdb00

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

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting to this. I have a question below but otherwise it's an approval from me.

.changeset/fast-poems-notice.md Outdated Show resolved Hide resolved
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
@bluwy bluwy added the router label Nov 22, 2021
@bluwy
Copy link
Member

bluwy commented Nov 22, 2021

I've re-run the tests twice but it seems like a fluke consistently happening recently. It's likely the way we detect scrolls that's causing it but this change should be safe as is. Merging this to fix #2853

@bluwy bluwy merged commit a112bae into master Nov 22, 2021
@bluwy bluwy deleted the if-else branch November 22, 2021 03:16
benmccann added a commit that referenced this pull request Nov 23, 2021
benmccann added a commit that referenced this pull request Nov 23, 2021
Rich-Harris added a commit that referenced this pull request Nov 24, 2021
* [fix] revert #2819 and add code comment

* lint

* Update packages/kit/src/runtime/client/renderer.js

Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>

* reverse condition

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants