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]: It is possible to type letters in the NumberInput (Firefox) #10279

Closed
2 tasks done
RadekKpc opened this issue Dec 13, 2021 · 2 comments
Closed
2 tasks done

[Bug]: It is possible to type letters in the NumberInput (Firefox) #10279

RadekKpc opened this issue Dec 13, 2021 · 2 comments

Comments

@RadekKpc
Copy link

Package

carbon-components-react

Browser

Firefox

Package version

v7.50.0

React version

No response

Description

Hi,
I found out a difference in the NumberInput behaviour in Chrome and Firefox. In the Chrome we can not type letters in the field, but it is possible in the Firefox browser.
Please look into it.

obraz

CodeSandbox example

https://react.carbondesignsystem.com/?path=/docs/components-numberinput--default

Steps to reproduce

  1. Type some letters in the NuberInput in the Firefox browser.

Code of Conduct

@tay1orjones
Copy link
Member

tay1orjones commented Dec 13, 2021

Hi @RadekKpc, thanks for reporting. This is something that the browsers disagree on, see this bugzilla thread for more info. Also related, #5658

Adding a validation function to enable preventing non-numeric characters from being entered is something that has been discussed but not yet implemented, #7039. We'd welcome a PR if you're interested in contributing!

@tay1orjones
Copy link
Member

Duplicate of #7039

@tay1orjones tay1orjones marked this as a duplicate of #7039 Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants