Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1917] keyboardToolbar remains on screen after keyboard closed

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-01-06T06:49:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJerod Fritz
AssigneeRitu Agrawal
Created2014-01-03T18:00:17.000+0000
Updated2016-03-08T07:40:50.000+0000

Description

The keyboardToolbar remains visible after keyboard is closed. This happens when a keyboard is shown in a window that is closed without the field being blurred. *Steps to Reproduce*:

Run app.js code below in iOS simulator (7.0+) using SDK 3.2.0 GA

Click 'Open Blue Window' button

Click inside the 'toolbar' textfield to open keyboard

With the keyboard open click the window's back button to return to the 'Red Window'

Click inside the plain textfield

Notice that the keyboard toolbar from the other textfield has returned

Click 'return' button on keyboard to close the keyboard

*Expected Results:* The keyboardToolbar is hidden when window is closed and does not appear on susbequent textfields in other windows *Observed Results:* The keyboard Toolbar remains visible at the bottom of the screen after keyboard has been closed (screenshot attached)
var win2 = Titanium.UI.createWindow({
    backgroundColor: 'red',
    title: 'Red Window'
});
var textfield1 = Ti.UI.createTextField({
  value : 'plain',
  right: 0
});
win2.add(textfield1);
var win1 = Titanium.UI.iOS.createNavigationWindow({
   window: win2
});

var win3 = Titanium.UI.createWindow({
    backgroundColor: 'blue',
    title: 'Blue Window'
});

var button = Titanium.UI.createButton({
    title: 'Open Blue Window',
    left: 0
});
button.addEventListener('click', function(){
    win1.openWindow(win3, {animated:true});
});

win2.add(button);
var button2 = Titanium.UI.createButton({
    title: 'Close Blue Window',
    left: 0
    
});
button2.addEventListener('click', function(){
    win1.closeWindow(win3, {animated:true});
});
var done = Titanium.UI.createButton({
  title : 'Done',
  style : Titanium.UI.iPhone.SystemButtonStyle.DONE,
});
var textfield2 = Ti.UI.createTextField({
  value : 'toolbar',
  keyboardType : Ti.UI.KEYBOARD_NUMBER_PAD,
  keyboardToolbar : [done],
  right : 0,
});
win3.add(textfield2);
win3.add(button2);
win1.open();

Attachments

FileDateSize
iOS Simulator Screen shot Jan 3, 2014, 12.53.18 PM.png2014-01-03T18:00:17.000+000031852

Comments

  1. Stephen Feather 2014-01-03

    Most likely a duplicate of (or at least related to) TIMOB-15967
  2. Jerod Fritz 2014-01-03

  3. Ritu Agrawal 2014-01-06

    Resolving this ticket as a duplicate of TIMOB-15967. Please track that ticket for further updates.

JSON Source