RoboZonky / natural-strategy-setup

Webový konfigurátor investiční strategie pro RoboZonky
https://robozonky.github.io/konfigurace-strategie/
2 stars 1 forks source link

Make it possible to delete numeric input values #6

Closed jhrcek closed 7 years ago

jhrcek commented 7 years ago

in Portfolio share / size forms, representing them as 0s in the underlying model and rendering their value as empty string in input fields.

jhrcek commented 7 years ago

Fixed by https://github.com/RoboZonky/natural-strategy-setup/commit/121e4a5012b06e38a712b06448781625ff0ff1ad The issue was solved by translating 0 in the model to empty String and vice versa. The upside is that now user doesn't have to "fight with zero" when entering numberic values (he can delete the entire input field). The downside is that IF user wants to enter 0 then it is not shown in the input.