Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16656] MobileWeb: createAlertDialog does not dismiss Ok button click

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2014-05-16T20:32:30.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsMobileWeb
Labelsregression
ReporterBeau Croteau
AssigneeChris Barber
Created2014-03-19T21:35:59.000+0000
Updated2017-03-20T22:15:44.000+0000

Description

I have a simple script to build my project and serve it from the command line: titanium clean titanium build -p mobileweb -D development pushd build/mobileweb python -m SimpleHTTPServer popd The project itself isn't really relevant to the test case (titanium create a simple mobileweb project - out of the box tabbed app will display the behavior below). If I edit tiapp.xml to use 3.1.3.GA, then the code snippet below works as expected via the chrome and safari javascript consoles when visiting (http://localhost:8000/index.html):
Ti.UI.createAlertDialog({message: "hi"}).show(); 
The alert dialog is displayed, I click Ok, and it disappears. If I edit tiapp.xml to use 3.2.2.GA, then the same snippet of code in the javascript console:
Ti.UI.createAlertDialog({message: "hi"}).show(); 
The alert dialog is displayed, but when I click Ok, it doesn't dismiss. It doesn't even appear that the 'click' event makes it back to the object because if I add it to the event listener with a console.log, it doesn't show in the console.
var b = Ti.UI.createAlertDialog({message: "hi"});
b.addEventListener('click',function(){console.log('hello')})
b.show()

Comments

  1. Ritu Agrawal 2014-03-20

    Moving this ticket to engineering as I can reproduce this issue with 3.2.2 release but not with 3.1.3 release.
       var win = Ti.UI.currentWindow;
       var alertDialog = Titanium.UI.createAlertDialog({
           message: 'Testing Bug 3916'
       });
       alertDialog.show();
       
  2. Chris Barber 2014-05-16

    Dupe of TIMOB-16931.
  3. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source