[AC-4869] iOS - Ti.UI.TEXT_AUTOCAPITALIZATION_WORDS is not working
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2017-03-23T14:56:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Caio Perdona |
Assignee | Shak Hossain |
Created | 2017-03-21T22:15:00.000+0000 |
Updated | 2017-03-23T18:08:57.000+0000 |
Description
Autocapitalization constant {noformat} Ti.UI.TEXT_AUTOCAPITALIZATION_WORDS {noformat} is not working on iOS devices.
Text typed on texfield shows no capitalization at all.
Android is working fine.
Attachments
Can you provide a test-case (contents of a simple app.js test-case)? That would speed-up the review process, thx!
How can I attach files here?
Just paste the code here, that's fine.
Here is a test case. TextField with autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_WORDS not capitalizing anything.
Works for me:
Maybe one of the other properties intercepts the property? We don't do anything with the constant, just passing it to the native object.
Will try to remove one property at a time. But, still, it should work with all the properties I've set.
@Hans I discovered that this property {noformat}keyboardType: Ti.UI.KEYBOARD_TYPE_NAMEPHONE_PAD{noformat} makes autocapitalization stop working. Is there a workaround for this?
Hey Caio, sorry to say that but it looks like native behavior. iOS seems to disallow word-capitalization of words when using this specific keyboard type. Native test-project attached to this ticket. To workaround the native limitation, you could check the words and capitalize them manually. I may be able to help you there, but please try it before. Thanks!
Hans, thanks for the fast feedback. I will see what I can do here to workaround this.