snaha-net / diete.design

https://diete.design
MIT License
0 stars 0 forks source link

feat: automatic formating at number input #339

Open hlavkat opened 1 month ago

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
diete-design ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 3:02pm
agazso commented 2 weeks ago

I am not sure how to test this.

I found an issue though: now that the input uses number instead string type, it is possible to overflow the number by pressing any number indefinitely. For example if I press and hold 1 eventually the result of the input will be 1.1111111111111114. This could be fixed by only allowing values in the +/-Number.MAX_SAFE_INTEGER range.