Skip to content

The mask won't work when set android:textAllCaps as true #85

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

Closed
li2 opened this issue Jun 21, 2019 · 2 comments
Closed

The mask won't work when set android:textAllCaps as true #85

li2 opened this issue Jun 21, 2019 · 2 comments
Assignees

Comments

@li2
Copy link

li2 commented Jun 21, 2019

Firstly thanks for your effort on this great lib.

I encountered a weird issue, the mask is not working and the cursor is always in the first position. see attached image.

Firstly, I thought it was an issue with TextInputEditText, so I reverted my codes to use EditText, the issue is still there, then I clone your sample code and compared line by line by removing different codes in my project.

Finally, I found the issue was caused by android:textAllCaps="true", because it was applied in a style throughout the App, so it's really hard to find it.

        android:digits="1234567890/ "
        android:textAllCaps="true" // Simply add this line in your sample code can replicate this issue.
        android:inputType="number" />

image

Hopefully, this can be mentioned in README. Thanks

@taflanidi
Copy link
Collaborator

Hey @li2!
Please accept my deep appreciation for your issue report.

I've added a new section to our known issues. Please let me know if you have anything to add, otherwise lets close this issue!

@li2
Copy link
Author

li2 commented Jun 21, 2019

Hey @taflanidi
Thanks for your quick response and the new section you just added is really helpful, appreciate!

@li2 li2 closed this as completed Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants