-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: cursor jumps in input two way binding #16649
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
base: main
Are you sure you want to change the base?
Conversation
Old Fix: Restore input binding selection position (sveltejs#14649) Current Fix: Remove unnecessary cursor manipulation as the presence of runes no longer requires special handling.
🦋 Changeset detectedLatest commit: f8f2a3d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
This breaks a case like this (compare to the latest version) <input bind:value={() => name, v => name = v.toUpperCase()} /> To elaborate: the input and the variable get desynced. |
This reverts commit 9109494.
Introduced Promise.resolve to ensure that the 'set' operation completes before the 'get' operation Minimizing update delays.
Hey @7nik Thanks for highlighting that. |
Old Fix: Restore input binding selection position (#14649) .
Current Fix: Remove unnecessary cursor manipulation written for (#14649) as the presence of runes no longer requires special handling.
This fix closes #16634
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.packages/svelte/src
, add a changeset (npx changeset
).Tests and linting
pnpm test
and lint the project withpnpm lint