Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6638] iOS 14: keyboard freezes after 2 password textfields are displayed after textfield with email

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMichiel van Eerd
AssigneeAbir Mukherjee
Created2020-11-30T16:10:50.000+0000
Updated2020-12-09T15:11:00.000+0000

Description

A common register window has 1 email textfield and 2 password textfields. But on iOS 14 the keyboard freezes when focussing one of the password fields. If you remove the email textfield or remove one of the password fields everything is fine. If you remove the passwordMask then the bug isn't happening as well. The SDK is 9.2.2.GA. Code to reproduce it:
var textFieldProps = {
	left: 10,
	right: 10,
	backgroundColor: "green",
	color: "white",
	passwordMask: true,
	height: 50
};

var win = Ti.UI.createWindow({
	backgroundColor: "white"
});

var view = Ti.UI.createView({
	height: Ti.UI.SIZE,
	layout: "vertical"
});

view.add(Ti.UI.createTextField(Object.assign({}, textFieldProps, {
	hintText: "Email",
	passwordMask: false,
	keyboardType: Ti.UI.KEYBOARD_TYPE_EMAIL
})));

view.add(Ti.UI.createTextField(Object.assign({}, textFieldProps, { top: 10 })));

view.add(Ti.UI.createTextField(Object.assign({}, textFieldProps, { top: 10 })));

view.add(Ti.UI.createButton({
	top: 10,
	title: "Login"
}));

win.add(view);

win.open();

Attachments

FileDateSize
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.46.53.png2020-12-02T07:48:51.000+000028830
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.52.30.png2020-12-02T07:53:08.000+000059404
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.52.40.png2020-12-02T07:53:06.000+000087809

Comments

  1. Vijay Singh 2020-12-01

    [~michielve] I tried to run given test case on iOS 14.2. I can see there is approx. 10s delay in keyboard appearance if we move focus from one textfield to another on Simulator. On device it is working fine. This seems bug from Apple side on simulator.
  2. Michiel van Eerd 2020-12-02

    @Vijay Singh I also experience this long lag on a device. When the password field gets focus one of the 2 things happens: 1) Either a "use strong password" option appears (see screenshot 2). If I choose "Choose my own password" then the normal keyboard appears (screenshot 1). 2) But most of the time, the keyboard appears as a transparent gray area (screenshot 3). After some time, the normal keyboard appears.
  3. Vijay Singh 2020-12-02

    [~michielve] Is it happening on devices with iOS 14.2?
  4. Michiel van Eerd 2020-12-03

    Yes I tested it on iOS 14.2.
  5. Satyam Sekhri 2020-12-08

    Could not reproduce the issue on an iOS 14.0 and iOS 14.2 device using titanium SDK 9.2.2.GA. Tried a few times and each time the keyboard appears successfully and email/password can be keyed in successfully. However on iOS simulator it sometimes does not show the keyboard at all and sometimes with a delay and some other times it shows "Strong Password" in the password field.
  6. Michiel van Eerd 2020-12-09

    I have not heard from clients about this issue yet, so maybe it's something with the device that is causing this issue. If I hear that more users experience this, I'll get back to you. Anyway thank you for checking.

JSON Source