Skip to content

feat(form): ✨ add AutoFormNullableNumber component for nullable numeric input#724

Merged
aXenDeveloper merged 1 commit into
canaryfrom
feat/add_settings_storage_role
Jul 24, 2026
Merged

feat(form): ✨ add AutoFormNullableNumber component for nullable numeric input#724
aXenDeveloper merged 1 commit into
canaryfrom
feat/add_settings_storage_role

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vitnode-docs Ready Ready Preview, Comment Jul 24, 2026 8:57pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2d484e1d4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

);
// Remember the last numeric value so unchecking the toggle restores it.
const lastNumericRef = React.useRef(
typeof field.value === "number" ? field.value : 0,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore a nullable number within its minimum

This initializes the value restored after unchecking the nullable toggle to 0 whenever the field starts as null. For fields with a positive minimum (the new docs example uses default(null) with min={1}), unchecking “Unlimited/Never” writes 0 into the form, immediately violating the schema and leaving the form invalid until the user edits the input. Seed the fallback from the input/schema minimum, or require an initial valid number for nullable defaults.

Useful? React with 👍 / 👎.

@aXenDeveloper
aXenDeveloper merged commit 55ae9b2 into canary Jul 24, 2026
5 checks passed
@aXenDeveloper
aXenDeveloper deleted the feat/add_settings_storage_role branch July 24, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant