-
Notifications
You must be signed in to change notification settings - Fork 305
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
Catalog: Integer field deletes itself after 11th digit #1718
Comments
This needs to be fixed first, in order to fix #1594 |
The reason this happens is because integer type has an upper limit of Note: without coma |
@shelaghm what's your preferred behavior for this case? |
I will be on exam leave for some weeks, will continue the work after I come back. |
@FikriMilano My suggestion is to show an error message such as I'm not sure what the best term to use is and if I also recommend using EntryFormat to display |
@shelaghm The actual issue isn't the number of digits but the value; any number larger than I'm not sure what a good error message would be though, "value must be smaller than 2,147,483,648" is a little awkward. |
@williamito @FikriMilano Ohhh, got it. Thanks for clarifying. In that case I think we should explain it as |
Thanks! @shelaghm @williamito |
Hi @shelaghm, here's a demo of the solution. Demo.Integer.Limit.webm |
@FikriMilano Looks great, one small change is to use a comma |
@shelaghm - commar or period is a localization issue - we need to use the correct system api to format the number in the correct locale. for example, 2,147,483,647 makes sense to me, but I don't think it makes sense in mainland Europe, I think they do 2.147.483.647. |
@jingtang10 @FikriMilano |
@FikriMilano Are you working on this? |
Describe the bug
While typing into "ID number" which is an integer field, once you type the 11th number the field auto-deletes all the contents.
Component
SDC gallery app
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Field does not delete itself.
Screenshots
integer.mp4
Smartphone (please complete the following information):
Additional context
Different than #1594 - the auto-delete behavior is new, in 1594 the text just scrolls so it's not visible.
The text was updated successfully, but these errors were encountered: