Skip to content

image input fixes for #16944 - #16953

Merged
paoloricciuti merged 3 commits into
input-type-imagefrom
image-input-fixes-16944
Aug 27, 2026
Merged

image input fixes for #16944#16953
paoloricciuti merged 3 commits into
input-type-imagefrom
image-input-fixes-16944

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

Fixes for the three issues raised on #16944, each with a test.

Nic Polumeyv 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
@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from de4e96b:

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

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

@changeset-bot

changeset-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: de4e96b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@paoloricciuti
paoloricciuti merged commit 94b29bf into input-type-image Aug 27, 2026
35 of 37 checks passed
@paoloricciuti
paoloricciuti deleted the image-input-fixes-16944 branch August 27, 2026 18:24
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.

2 participants