trezor-suite icon indicating copy to clipboard operation
trezor-suite copied to clipboard

Can't paste number with whitespace to number input

Open Lemonexe opened this issue 1 year ago • 2 comments

Describe the bug

When pasting a number into number field with whitespace at the end, for example 0.1 to Amount field in send form. It errors out the textfield

How to reproduce Steps to reproduce the behavior:

  1. Go to any coin
  2. Click on Send
  3. Paste a number, even a very short one, with whitespace at the end
  4. It errors out :x:
  5. Press backspace and type a number, only now it will be correct :heavy_check_mark:

Expected behavior It should correctly parse the string.

Screenshots image Screenshot 2024-10-21 at 13 01 03 Screenshot 2024-10-21 at 13 00 38

Lemonexe avatar Oct 01 '24 11:10 Lemonexe

Hi @Lemonexe šŸ‘‹, I’m a newcomer to the project. I wanted to ask if it would be alright for me to work on this issue. If yes, then should I follow the steps in Developement section of readme to setup the environment. Also if you could provide any hint/guide as to where the bug might be occurring ?

EDIT: Shoot! I think @tomasklim assigned it to himself just now šŸ˜…. I'll look for some other open bug. Apologies for the inconvenience.

Harshit-0020 avatar Oct 21 '24 10:10 Harshit-0020

Hey @Harshit-0020, any help is much appreciated! Once you get the project up and running, check out the list of good first issues to start!

komret avatar Oct 21 '24 12:10 komret

QA OK

Info:

  • Suite version: web 24.12.0 (4258d1c3c5bfcc405e73e48ea633f0bdf62f4d80)
  • Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
  • OS: MacIntel
  • Screen: 1512x982
  • Device: Trezor T3T1 2.8.3 regular (revision 7f373ae71eca855dd41b4a0fdcc7cadaa13a8281)
  • Transport: WebUsbTransport

bosomt avatar Nov 26 '24 13:11 bosomt