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

Mask does not work for full-width japanese characters #1095

Open
pedrormonteiro opened this issue Nov 26, 2024 · 1 comment
Open

Mask does not work for full-width japanese characters #1095

pedrormonteiro opened this issue Nov 26, 2024 · 1 comment

Comments

@pedrormonteiro
Copy link

pedrormonteiro commented Nov 26, 2024

Describe the bug
In react-imask, it was identified that on mobile phones (actual phones or simulators) configured with a Japanese zenkaku (full-width characters) keyboard, the mask does not work.

To Reproduce
Steps:
Access the sandbox on an actual iPhone or on a simulator

Phone steps:

  1. Access the sandbox
  2. Type “1234567“ using full-width keyboard (You can configure on the settings)
  3. The field will show "1234567"

Simulator steps:

  1. Install xcode
  2. Install iOS simulator
  3. Configure all japanese keyboards
  4. Select full-width keyboard

Sandbox: https://codesandbox.io/p/devbox/imask-test-h8y7hj

image image

Expected behavior
Field should show "123-4567"

Environment:

  • OS: iOS
  • Browser: chrome, safari
  • IMask version: 7.6.1
  • Framework/plugin version if used: react-imask
@pedrormonteiro
Copy link
Author

The issue is also reproducible by using a japanese keyboard on windows
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant