[TIMOB-10828] iOS: Button in keyboardToolbar on iPad in window with 'MODAL_PRESENTATION_FORMSHEET' is not clickable
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Gertjan Smits |
Assignee | Unknown |
Created | 2012-09-07T01:56:47.000+0000 |
Updated | 2018-02-28T20:03:42.000+0000 |
Description
Problem
Button(s) inside a keyboardToolbar of a Ti.UI.TextField (TextArea not tested) are not clickable on iPad when the parent window is opened in modalStyle:Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET.
Test case
var w = Ti.UI.createWindow({
backgroundColor:"white"
});
var saveButton = Ti.UI.createButton({
style:Ti.UI.iPhone.SystemButton.SAVE,
title:"Save"
});
var textField = Ti.UI.createTextField({
top:10,
hintText:"Click on the 'Save' button",
width:300,
height:40,
borderStyle:Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
keyboardToolbar:[Ti.UI.createButton({
systemButton:Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE
}), saveButton]
});
saveButton.addEventListener("click", saveButtonClickHandler);
w.add(textField);
w.open({
modal:true,
modalStyle:Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET
});
function saveButtonClickHandler( e ) {
alert("clicked!");
}
Toggle the 'modalStyle:Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET' on or off to see it.
It works fine on iPhone.
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 6.0