[AC-6638] iOS 14: keyboard freezes after 2 password textfields are displayed after textfield with email
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Michiel van Eerd |
Assignee | Abir Mukherjee |
Created | 2020-11-30T16:10:50.000+0000 |
Updated | 2020-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
File | Date | Size |
---|---|---|
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.46.53.png | 2020-12-02T07:48:51.000+0000 | 28830 |
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.52.30.png | 2020-12-02T07:53:08.000+0000 | 59404 |
Simulator Screen Shot - iPhone 8 - 2020-12-02 at 08.52.40.png | 2020-12-02T07:53:06.000+0000 | 87809 |
[~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.
@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.
[~michielve] Is it happening on devices with iOS 14.2?
Yes I tested it on iOS 14.2.
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.
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.