trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
723 stars 251 forks source link

Can't paste number with whitespace to number input #14654

Open Lemonexe opened 1 month ago

Lemonexe commented 1 month ago

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

Harshit-0020 commented 3 weeks ago

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.

komret commented 3 weeks ago

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!