[TIMOB-26012] iOS: Textfield AutoCaps is not working on specific keyboardType.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2018-05-04T13:50:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | escalation |
Reporter | Motiur Rahman |
Assignee | Unknown |
Created | 2018-05-04T09:54:02.000+0000 |
Updated | 2018-08-06T17:37:04.000+0000 |
Description
Issue: Textfield "autocapitalization" property is not working with specific keyboardType named keyboardType :Titanium.UI.KEYBOARD_TYPE_NAMEPHONE_PAD,
Steps To Reproduce:
1. Run the following test code on an iOS device
2. Then click on textfield and check autocapitalization is not showing. If you change the keyboardType it works.
Test Code:
var window = Ti.UI.createWindow({
backgroundColor: 'white'
});
var textField = Ti.UI.createTextField({
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
keyboardType :Titanium.UI.KEYBOARD_TYPE_NAMEPHONE_PAD,
autocapitalization :Titanium.UI.TEXT_AUTOCAPITALIZATION_ALL,
color: '#336699',
width: 250,
height: 60
});
textField.addEventListener('click', function() {
Ti.API.info('in text field click');
});
window.add(textField);
window.open();
Thanks!
This is the native iOS behavior which restricts certain keyboard types for autocapitalization. See TIMOB-19230 and the [official Apple docs](https://developer.apple.com/documentation/uikit/uitextinputtraits/1624447-autocapitalizationtype?language=objc) for details.
Closing as invalid. If incorrect, please reopen.