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: avoid server round trips when playing Sverdle with a keyboard #416

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

eltigerchino
Copy link
Member

@eltigerchino eltigerchino commented Jan 23, 2025

This PR modifies the create-svelte default template to ensure keydown events while playing Sverdle correctly avoid making a request to the server if client-side JS is available. Apparently, the synthetic mouse event needs to bubble to trigger the onclick handler. If not, it triggers the formaction on the button instead.

Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: d05c927

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/create 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

pkg-pr-new bot commented Jan 23, 2025

Open in Stackblitz

npm i https://pkg.pr.new/sveltejs/cli/sv@416
npm i https://pkg.pr.new/sveltejs/cli/svelte-migrate@416

commit: d05c927

@benmccann benmccann merged commit 9996b07 into main Jan 23, 2025
8 checks passed
@benmccann benmccann deleted the fix-wordle-keydown branch January 23, 2025 16:35
@github-actions github-actions bot mentioned this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants