mWater / mwater-forms

Forms controls for mWater
GNU Lesser General Public License v3.0
3 stars 5 forks source link

Strange input error with decimals on Android #176

Closed grassick closed 7 years ago

grassick commented 7 years ago

1) How to make the problem happen 2) What you expected to see 3) What you saw instead.

  1. On some smartphones, respond to a decimal number question
  2. It responds as expected.
  3. When "." is pressed it changes the cursor position to the beginning of the number box and erases the preceding numbers. Example: 1.2, when i enter 1 it is good, but then I enter "." and it erases the 1, and replaces it with "."
grassick commented 7 years ago

Could be that the phones are in French locale...

broncha commented 7 years ago

I tried changing my phone's locale to French and answering a decimal question. Works as expected. Do you have any phone models number that has this behavior? May be I can find an image and run in emulator

grassick commented 7 years ago

I've written to the person who reported, asking for a specific example device.

grassick commented 7 years ago

Ahhh, I see what the problem is. I apologize for reporting that as a bug. It looks like if the phone’s settings are in french, it switches the “.” to a “,” and as such is registered as a character, but the field doesn’t accept characters, so it erases it. If the user enters a “,” then it changes it to a “.” and is accepted as a decimal number. Honestly it was just an issue during the training, when I told everyone to enter in “.”s and it wasn’t accepting it. My team is good now, thank you!