Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5361] iOS 11 textfield has a key icon gray bar over the keyboard

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNot Our Bug
Resolution Date2017-11-10T14:07:04.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbar, textfield
ReporterJoseph Sachs
AssigneeShak Hossain
Created2017-11-09T19:41:51.000+0000
Updated2017-11-10T16:35:43.000+0000

Description

TextField on iOS 11 has an odd bar over the keyboard. Is there a parameter in TextField iOS SDK that has not been exposed for iOS 11? To Reproduce: - Create a View with 2 Text Fields. - One of them displayed as a Password. - Run After typing One character in the TF, it disappears, this happens on TextFields that are Not Passwords as well. The Key Icon, I assume is for Saved Passwords, though even it shows on TextFields with regular visible text. Image Attached

Attachments

FileDateSize
iOS11 TextField.jpg2017-11-09T19:56:30.000+0000140596

Comments

  1. Hans Knöchel 2017-11-10

    It's a behavior used for username / password fields and seems to be a known problem for devs, see [here](https://stackoverflow.com/questions/45452170/ios-11-disable-password-autofill-accessory-view-option). Not sure what's the best thing to address this, but it doesn't really look like a Titanium issue. Applying the workaround provided in Stackoverflow (again, this is not specific to Titanium), you can set the "autofillType" property of the text-field to an empty string, e.g
       field.autofillType = '';
       
  2. Joseph Sachs 2017-11-10

    great it worked. Thanks @Hans :)

JSON Source