Reproduce Step:
1. Simply Run the code below
2. You will notice that when focus first textfield, the keyboardToolbar is not displaying, only a blank took bar.
3. But the second one works well.
4. If there is only one textfield, it works well too.
var win = Titanium.UI.createWindow({
backgroundColor: 'white',
});
var view = Ti.UI.createView({
top: 0,
});
// Textfield 1
var textfield1 = Ti.UI.createTextField({
top: 20,
hintText: "First Name",
});
view.add(textfield1);
// Textfield 2
var textfield2 = Ti.UI.createTextField({
top: 100,
hintText: "Second Name",
});
view.add(textfield2);
// Tool Button
var next = Titanium.UI.createButton({
title: 'Next',
});
var prev = Ti.UI.createButton({
title: 'Previous',
});
var done = Ti.UI.createButton({
title: 'Done',
});
var flexSpace = Titanium.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
// create tool bar and add it into textfield
var toolbar1 = Ti.UI.iOS.createToolbar({
items: [next, flexSpace, done],
});
var toolbar2 = Ti.UI.iOS.createToolbar({
items: [prev, next, flexSpace, done],
});
textfield1.keyboardToolbar = toolbar1;
textfield2.keyboardToolbar = toolbar2;
win.add(view);
win.open();
Is there something wrong with test code? or a bug?
Can test and try on 5.2.0.RC?
Everyone: Did that work before, using older Ti-versions?
Update: The problem is, that you reference one button in two different toolbars. A simple fix is to create own buttons for each toolbar. Please let us know if that helps.
Closing as there's no fixes required to implement the above.
Closing ticket as Won't Fix with reference to the above comments.