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

Slider component doesn't validate characters on Firefox. #9225

Closed
2 tasks done
dkaushik95 opened this issue Jul 19, 2021 · 2 comments
Closed
2 tasks done

Slider component doesn't validate characters on Firefox. #9225

dkaushik95 opened this issue Jul 19, 2021 · 2 comments

Comments

@dkaushik95
Copy link
Contributor

dkaushik95 commented Jul 19, 2021

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

When I try to use the Slider component on Firefox, I can't seem to validate against characters.

Is this issue related to a specific component?

The Slider component

What did you expect to happen? What happened instead? What would you like to
see changed?

I would like the Slider component to not let me type characters. Only numbers between specified range.

What browser are you working in?

Firefox

What version of the Carbon Design System are you using?

Screen Shot 2021-07-19 at 10 47 47 AM

Steps to reproduce the issue

  1. Open the sandbox on Firefox
  2. Try entering characters instead of numbers

Please create a reduced test case in CodeSandbox
https://codesandbox.io/s/hardcore-gauss-1nwth?file=/src/App.js

@tay1orjones
Copy link
Member

Hi @dkaushik95 - this is a limitation of the browser's default behavior regarding number inputs. Here's the open bugzilla issue for it with additional context.

@dkaushik95
Copy link
Contributor Author

Thanks, @tay1orjones! I'll pass this info on.

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