#429

fix(core): accept numeric strings in min and max validation

Openlahfirwants to merge intofrom
  1. min and max always failed for numeric strings like "7", so a text input bound to a field with min: 5 was never valid.
  2. min, max and numeric now share one number parser: blank and partial strings like "5px" still fail, and numeric strings compare as numbers.
  3. Builds on #318.

Co-authored by @ken8203, based on #318.

Before

A text field with min 5 and max 10 rejects "7" and "10" as too small.

https://github.com/user-attachments/assets/900a9f94-c3b2-44ce-9e67-6fd0e0154ff1

After

The same field accepts 5 to 10 and still rejects 4, 11, empty and "5px".

https://github.com/user-attachments/assets/f111b855-3a53-40ef-a8a2-5df3cb870527

Activity

4
vercel[bot]20d ago

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

ProjectDeploymentActionsUpdated
json-render ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-chat-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-dashboard-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-game-engine-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-image-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-no-ai ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-react-email-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-react-pdf-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-react-three-fiber-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-remotion-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-solid-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-svelte-chat-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-svelte-demo ReadyPreview, v0Oct 23, 2026 6:38pm UTC
json-render-vue ReadyPreview, v0Oct 23, 2026 6:38pm UTC
ctateapproved changes20d ago