[AC-2533] "blur" event listener for windows inside a navigation window (inside a split view) not working
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-11-21T02:38:10.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | ios |
| Reporter | Marco Cancellieri |
| Assignee | Shak Hossain |
| Created | 2013-11-13T10:42:01.000+0000 |
| Updated | 2016-03-08T07:41:35.000+0000 |
Description
var detailWin= Ti.UI.createWindow({backgroundColor:"white"});
var win1 = Ti.UI.createWindow({backgroundColor:"white"});
var win2 = Ti.UI.createWindow({backgroundColor:"white"});
win2.addEventListener('blur', function(){
//should be fired when you press on the back button from win2
alert("win2 blurred");
});
var button = Ti.UI.createButton({title:"win2"});
button.addEventListener('click', function(){navWin.openWindow(win2);});
win1.add(button);
var navWin = Ti.UI.iOS.createNavigationWindow({
window:win1
});
var splitWin = Ti.UI.iPad.createSplitWindow({
showMasterInPortrait:true,
detailView: detailWin,
masterView: navWin
});
splitWin.open();
Seems to be fixed in 3.2.x
Closing it since the reporter informed the issue has been fixed in 3.2 version of the SDK.