Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10828] iOS: Button in keyboardToolbar on iPad in window with 'MODAL_PRESENTATION_FORMSHEET' is not clickable

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterGertjan Smits
AssigneeUnknown
Created2012-09-07T01:56:47.000+0000
Updated2018-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.

Comments

  1. Shameer Jan 2013-03-26

    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

JSON Source