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

Improve input restrictions for numeric fields #263

Open
lognaturel opened this issue Dec 13, 2024 · 0 comments
Open

Improve input restrictions for numeric fields #263

lognaturel opened this issue Dec 13, 2024 · 0 comments

Comments

@lognaturel
Copy link
Member

lognaturel commented Dec 13, 2024

Follow up to #261

The string type with number appearance currently is limited to 17 digits1. It shouldn't have a length restriction.

The decimal type allows up to 18 digits. Collect caps input at 15 characters. Decide whether to align.

The integer type allows up to 9 digits and a -. Collect caps input at 9 characters. Decide whether to align.

Currently if an out-of-bounds input is entered, the field is forced to the nearest bound. Collect limits the number of digits that can be entered in the case of direct input.

Negative numbers can't be input on iOS: primefaces/primevue#6640

Footnotes

  1. More specifically, it has all of the limitations of JavaScript's number type. A 17 digit integer is an easy way to demonstrate this as it exceeds Number.MAX_SAFE_INTEGER.

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

No branches or pull requests

1 participant