image input fixes for #16944 - #16953
Merged
Merged
Conversation
added 3 commits
August 27, 2026 11:02
an image submitter has value '' which coerces to undefined and overwrites input.position on every enhanced submit; the coordinates are already in form_data
IsImageInputValue<any> is false, so the image special case in RemoteFormFieldType rejected .as('image') on any and index-signature schemas; RemoteFormFields already withholds as() from objects with extra keys
submit() and validate() built FormData without the coordinates, so position failed validation on every validate() after a failed submit
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/de4e96beebcc7ac5c42d79dcdad45ed803ccd345Open in |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for the three issues raised on #16944, each with a test.
handle_submitskips the mirror for image submitters)T extends InputTypeMap[K]check inRemoteFormFieldType)[type="image"]in the default-submitter selector)