Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8716] Android: When switching between tabs, keyboard stays on screen

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-12-19T02:20:36.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterIvan Skugor
AssigneeHieu Pham
Created2012-04-13T01:28:14.000+0000
Updated2017-03-31T17:21:24.000+0000

Description

The problem

Let's say that there is a text field in one tab that is focused so that keyboard is showed on the screen. Switching to other tab does not hide keyboard, despite the fact that the tab that we're switching on does not have text field in it.

Steps to reproduce

To see this issue, run this example:
var tabGroup = Ti.UI.createTabGroup();

var tab1 = Ti.UI.createTab({
    title: 'Tab 1',
    window: Ti.UI.createWindow()
});

var tab2 = Ti.UI.createTab({
    title: 'Tab 2',
    window: Ti.UI.createWindow()
});

var textField = Ti.UI.createTextField({
    width: 300,
    height: 50,
	keyboardType : Ti.UI.KEYBOARD_NUMBER_PAD
});

tab1.window.add(textField);

tabGroup.addTab(tab1);
tabGroup.addTab(tab2);

tabGroup.open();
Text field in first tab should be autofocused, if it's not, click on it. When keyboard is shown on the screen, click on "Tab 2". You should see that keyboard is still up and it has changed its type from numeric to alphanumeric.

Expected behavior

When tab is switched, keyboard should be hidden.

Comments

  1. Hieu Pham 2012-12-19

    I cannot reproduce this bug on latest master.
  2. Lee Morris 2017-03-31

    Closing ticket as I am unable to reproduce the issue using the following environment; Pixel (7.1) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source