measuredco / puck

The visual editor for React
https://puckeditor.com
MIT License
5.26k stars 318 forks source link

Strip leading zeros in Number Field #694

Closed benlife5 closed 1 day ago

benlife5 commented 5 days ago

When you delete the value in NumberField, it resets to 0. However, once you type in another number, it keeps the leading 0. Ideally, this would be stripped as the user is typing.

https://github.com/user-attachments/assets/08c77494-0278-4c1f-b2be-a65c7f5dbefa

https://stackblitz.com/edit/vitejs-vite-ncvhwx?file=src%2FEditor.tsx

chrisvxd commented 1 day ago

Closed by #695