#429
fix(core): accept numeric strings in min and max validation
minandmaxalways failed for numeric strings like "7", so a text input bound to a field withmin: 5was never valid.min,maxandnumericnow share one number parser: blank and partial strings like "5px" still fail, and numeric strings compare as numbers.- 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
4ctateapproved changes20d ago
The latest updates on your projects. Learn more about Vercel for GitHub.