Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26012] iOS: Textfield AutoCaps is not working on specific keyboardType.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2018-05-04T13:50:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsescalation
ReporterMotiur Rahman
AssigneeUnknown
Created2018-05-04T09:54:02.000+0000
Updated2018-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!

Comments

  1. Hans Knöchel 2018-05-04

    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.
  2. Eric Merriman 2018-08-06

    Closing as invalid. If incorrect, please reopen.

JSON Source