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

fix(number-input): Turn off formatting for Android and iOS devices #161

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

yasincaliskan
Copy link
Contributor

@yasincaliskan yasincaliskan commented Oct 20, 2021

Description

  • The Input (A.K.A NumberInput) had weird behavior on some Android devices. When we try to write 1000, the value was becoming 1.0001000. This issue is the same with 1001, 1008, etc.
  • We debugged this issue on an Android phone and we noticed this issue about Intl.FormatNumber but we haven't found any sensible reason. And we decided to exclude formatting for Android and iOS devices.
  • isMobileDevice utility was added. That's way, all Android and iOS devices can only have scientific notation with the en-US locale.

@edizcelik
Copy link
Contributor

I talked with Kaan about this and he said if we are cancelling localization for Android devices, we should probably cancel it on iOS as well. So, I think we can also remove localization from iOS. So, the localization of the NumberInput will only be allowed for desktops.

@yasincaliskan yasincaliskan changed the title fix(number-input): Turn off formatting for Android devices fix(number-input): Turn off formatting for Android and iOS devices Oct 26, 2021
@yasincaliskan yasincaliskan merged commit 762ce25 into next-release Oct 27, 2021
@mucahit mucahit deleted the fix/number-input-formatting-for-android branch March 11, 2022 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants