Skip to content

Conversation

cofl
Copy link

@cofl cofl commented Oct 12, 2025

Adds input types "hidden number" and "hidden boolean" for numeric and boolean form fields. This allows numeric IDs -- post IDs, comment IDs, etc -- to be directly used in hidden fields without explicitly converting to/from strings, which better matches many common use cases.

Closes #14694


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

  • Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.
Copy link

changeset-bot bot commented Oct 12, 2025

🦋 Changeset detected

Latest commit: ebd63b2

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 Minor

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

@cofl cofl marked this pull request as draft October 12, 2025 20:32
@cofl cofl marked this pull request as ready for review October 12, 2025 20:46
@cofl cofl changed the title Add hidden input types for numbers and booleans Oct 13, 2025
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': minor
Copy link
Author

Choose a reason for hiding this comment

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

Suggested change
'@sveltejs/kit': minor
'@sveltejs/kit': patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant