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();
Most likely a duplicate of (or at least related to) TIMOB-15967
Resolving this ticket as a duplicate of TIMOB-15967. Please track that ticket for further updates.