snaha / diete.design

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

feat: automatic formating at number input #339

Open hlavkat opened 4 months ago

hlavkat commented 4 months ago

resolved #328

vercel[bot] commented 4 months 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 3 months 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.