-
Notifications
You must be signed in to change notification settings - Fork 120
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
Chrome on Android devices let me not input more than 1 number in mode NATURAL #100
Comments
I'm facing this issue too. |
Okay, i've fixed it. PR will be soon. |
|
This is a duplicate of Issue #90 |
Fixed at ngx-currency@2.4.0 |
Hello
We use your directive in our project and we like it and did not experience problems until now. But yesterday we did a user test and the user had an Android device running chrome. He told us that he was not able to insert any currency values other than the ones with just one number. In Our case for example:
Input:
1
--> Output:1,00 €
All other inputs are not accepted. I investigated this issue and found a reason.
If running AndroidChrome the directive does not do
handleKeypress()
but insteadhandleInput()
. This sets the cursor to the end of the input fields text after the first number input or before all subsequent inputs.If the user has input the above number and now inputs 2 the resulting rawValue looks like
1,00 €2
. This gets converted to1002
and then truncated to100
ininputService
and the final result is again1,00 €
.On all devices other than Android with Chrome the
handleInput()
method is not used and the cursors position is not set to the end what leads to the expected output. Is this the intended behaviour or did I miss something here?Best regards
The text was updated successfully, but these errors were encountered: