Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8611] iOS: TextArea.blur() does not hide keyboard on iPad in modal formsheet

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-07-17T23:37:07.000+0000
Affected Version/sRelease 1.8.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterBrian Ernesto
AssigneeIngo Muschenetz
Created2012-03-05T11:01:54.000+0000
Updated2017-03-22T22:26:15.000+0000

Description

Issue

In iOS while using the iPad simulator calling myTextArea.blur() in a modal formsheet does not hide keyboard or fire the blur event.

Steps to reproduce

1) Click on the TextArea in red 2) Click on the button 3) Monitor the console how events are triggered however the keypad is still up [INFO] focus fired [INFO] blur fired

Repro sequence

var window = Titanium.UI.createWindow({

});

var textArea = Ti.UI.createTextArea({
	backgroundColor: 'red',
	top:10,
	height:'50'
});
window.add(textArea);

var button = Ti.UI.createButton({
	backgroundColor: 'blue',
	title:'Blur()',
	height:'50',
	top: 250
});
window.add(button);

textArea.addEventListener('blur', function(){
	Ti.API.info('blur fired');
});

textArea.addEventListener('focus', function(){
	Ti.API.info('focus fired');
});

window.open({
    modal:true,
    modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL,
    modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET
});

button.addEventListener('click', function(){
		textArea.blur();
});

Attachments

FileDateSize
iPadSimulator.jpg2012-04-06T18:40:03.000+000040265

Comments

  1. Ygor Lemos 2012-11-23

    Any news on this??? Happening on 2.1.4.GA - iOS 6 The textArea doesn't even fire the blur event for me... I'm using suppressReturn: true so it means I got stuck with the keyboard forever... any temp fixes in mind?
  2. jithinpv 2013-04-02

    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
  3. Blain Hamon 2013-07-17

    TIMOB-3109 is the original JIRA explaining this is Apple's intended behavior. TIMOB-6060 is for a new feature to change the behavior.
  4. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source