Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16656

MobileWeb: createAlertDialog does not dismiss Ok button click

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 3.2.2
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      Ubuntu 12.04 LTS
      node v0.10.26
      npm v1.4.3
      titanium 3.2.1
      alloy 1.3.1

    • Sprint:
      2014 Sprint 10 Tooling

      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 <sdk-version>3.1.3.GA</sdk-version>, 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 <sdk-version>3.2.2.GA</sdk-version>, 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()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                crobe03 Beau Croteau
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18498
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration