[TIMOB-16656] MobileWeb: createAlertDialog does not dismiss Ok button click
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-05-16T20:32:30.000+0000 |
Affected Version/s | Release 3.2.2 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | regression |
Reporter | Beau Croteau |
Assignee | Chris Barber |
Created | 2014-03-19T21:35:59.000+0000 |
Updated | 2017-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):
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, I click Ok, and it disappears.
If I edit tiapp.xml to use
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()
Moving this ticket to engineering as I can reproduce this issue with 3.2.2 release but not with 3.1.3 release.
Dupe of TIMOB-16931.
Closing ticket as duplicate.