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();
});
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?
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
TIMOB-3109 is the original JIRA explaining this is Apple's intended behavior. TIMOB-6060 is for a new feature to change the behavior.
Closing ticket as duplicate and links to the related ticket have been provided above.