Basilisk-ui
Basilisk-ui copied to clipboard
Bug: Not possible to start with 0 as first decimal in the "Pay with" or "You get" fields
Description
It is not possible to start with 0 as the first decimal number when we start with a completely erased input field
Expected Behavior
The field is set to 0.0
We should be able to start with 0 as the first decimal number (because it works when we use non-zero as first decimal number)
Actual Behavior
The field is set to 0
Possible Fix
Steps to Reproduce
- Type any number (f.e.: 123) in the "Pay with" or "You get" fields
- Delete everything you typed
- Write decimal separator "."
- Write "0"
Context
I was trying to type 0.01 after erasing my previous input data.
Your Environment
- Toolchain versions:
- Version used: 8edcf46
- Browser: Chrome and Brave
- System type:
- Operating System and version: Ubuntu 22.04 and OSX
- System specs:
https://images.zenhubusercontent.com/413783853/58044eb2-64e3-4a52-a6f0-32aa79d507b7/basilisk_ui_bug.mov