Basilisk-ui icon indicating copy to clipboard operation
Basilisk-ui copied to clipboard

Bug: Not possible to start with 0 as first decimal in the "Pay with" or "You get" fields

Open dmoka opened this issue 2 years ago • 1 comments

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

  1. Type any number (f.e.: 123) in the "Pay with" or "You get" fields
  2. Delete everything you typed
  3. Write decimal separator "."
  4. 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

dmoka avatar Jul 07 '22 13:07 dmoka