primeng icon indicating copy to clipboard operation
primeng copied to clipboard

InputOTP integerOnly does not use numeric inputmode (alphanumeric keybaord shows on mobile).

Open ABryantdev opened this issue 1 year ago • 0 comments

Describe the bug

The InputOTP component in integerOnly mode doesn't set a numeric inputmode, which means it will show the standard alphanumeric keyboard on mobile devices even though the alpha characters can't be used. It would make more sense if in integerOnly mode this component prompted the browser to bring up the numeric keyboard, so the user doesn't need to switch keyboards for every input.

Pull Request Link

No response

Reason for not contributing a PR

  • [x] Lack of time
  • [ ] Unsure how to implement the fix/feature
  • [ ] Difficulty understanding the codebase
  • [ ] Other

Other Reason

No response

Reproducer

https://primeng.org/inputotp#integeronly

Environment

iPhone 12 Max iOS 26.

Angular version

20

PrimeNG version

v20

Node version

No response

Browser(s)

iOS 26 Firefox

Steps to reproduce the behavior

This issue can be reproduced trivially by using the latest version of the documentation (https://primeng.org/inputotp#integeronly) on iOS (I haven't been able to test on Android).

Expected behavior

The numeric keyboard should be displayed when [integerOnly] is true.

ABryantdev avatar Nov 12 '25 11:11 ABryantdev