mantinedev / mantine

A fully featured React components library
https://mantine.dev
MIT License
26.26k stars 1.86k forks source link

Support for Non-English Numeric Input in NumberInput Component #6898

Closed mnakhli closed 1 day ago

mnakhli commented 1 day ago

Dependencies check up

What version of @mantine/* packages do you have in package.json?

Latest

What package has an issue?

@mantine/core

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

Chrome

Describe the bug

The current NumberInput component only accepts English (Latin) numerals, restricting input from users who use other numeral systems such as Arabic, Persian, or others. This limitation affects users with keyboards or language settings that default to these numerals.

Expected Behavior:

Actual Behavior:

Suggested Solution:

Steps to Reproduce:

  1. Set your keyboard to a layout that uses Arabic or Persian numerals.
  2. Try to enter a number into the NumberInput component.
  3. Notice that the input is rejected unless the keyboard is switched back to English numerals.

Additional Context: Supporting multiple numeral systems would enhance accessibility and usability for international users, improving the inclusivity of the application.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service