two-brothers / overcooked-cms

0 stars 0 forks source link

Use strings for numerical inputs #1

Closed nikeshnazareth closed 5 years ago

nikeshnazareth commented 5 years ago

When converting inputs to Numbers, the empty string is immediately cast to zero. This makes it impossible to delete a quantity and replace it.

We should treat them as strings ( still using the type=number and min/step values ) and convert them when we save to the server