You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many keyboard layouts, number are on keys, where on English keyboard are not numbers, thus event.code.startsWith('Digit') will return false. This has been issues in sister-repos, ie: primefaces/primereact#6727
Describe the bug
KeyboardEvent.code ignores keyboard layout:
https://developer.mozilla.org/en-US/docs/Web/API/Element/keyup_event#browser_compatibility
In many keyboard layouts, number are on keys, where on English keyboard are not numbers, thus
event.code.startsWith('Digit')
will return false. This has been issues in sister-repos, ie: primefaces/primereact#6727Pull Request Link
#17393
Other Reason
No response
Reproducer
https://primeng.org/inputotp
Environment
Keyboard layout with different numbers, for example Hungarian
Angular version
19.0.6
PrimeNG version
v19, v18, v17
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Set integerOnly flag to true. Try using numbers on a non-English keyboard layout. Numbers might be prevented
Expected behavior
Should display numbers.
The text was updated successfully, but these errors were encountered: