Light-client: I do want to be able to type an eg. .5 instead of a 0.5

Created on 2 Sep 2019  路  5Comments  路  Source: raiden-network/light-client

User Story

As Chris I do want to be able to just type an eg. .5 instead of a 0.5 so that I am faster entering the payment amount

After typing in a number I have to put a whole number (1,2,3,4...) before it allows me to put a decimal place. I.e. I cannot just put .5, i have to put 3.5 then delete the 3.

Acceptance criteria

Tasks

cc @MrCleanerPickerUpper

enhancement dApp 馃摫

Most helpful comment

@nephix Basically the reason the field is not a number, is that Firefox has an issue handling more than 16 decimal points on the type="number", and people were complaining about that on the WebUI so I decided to avoid the issue here. :)

It is only a display issue, the value is still there, but it is confusing.

All 5 comments

Built-in in <input type="number" />, only need to switch to that in AmountInput component

@nephix Basically the reason the field is not a number, is that Firefox has an issue handling more than 16 decimal points on the type="number", and people were complaining about that on the WebUI so I decided to avoid the issue here. :)

It is only a display issue, the value is still there, but it is confusing.

I didn't know that, how ugly! Thanks for noticing and mentioning

Considering this would the implementation be more complex than 1 story point?

No, max 2. But I will need to address this within #1160 because they are related

Was this page helpful?
0 / 5 - 0 ratings