Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Token Address can be pasted to amount input field #282

Open
memoyil opened this issue Jan 12, 2025 · 0 comments
Open

[bug] Token Address can be pasted to amount input field #282

memoyil opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@memoyil
Copy link

memoyil commented Jan 12, 2025

@bnb-chain/canonical-bridge-widget Version

0.5.15

Describe the bug

A crypto token address can be pasted into token amount field (classname = bccb-widget-transfer-input) (

<Flex className="bccb-widget-transfer-input-container" flexDir={'column'} position={'relative'}>
) in dapp browsers which results into error thrown (InvalidDecimalNumberError Number 0x..... is not a valid decimal number.)

Expected behavior

In mobile input paste other than decimal number should not be allowed

Steps to reproduce

Open the widget in mobile
Paste crypto token address into token amount field
See error thrown

Anything else?

No response

@memoyil memoyil added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@memoyil and others