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

MobileWeb: AlertDialog click listener is not fired in SDK >= 3.2.0

    Details

    • Sprint:
      2014 Sprint 10 Tooling

      Description

      Description of the problem

      The 'click' event is not fired for AlertDialog in mobile web (Chrome Desktop). The same works fine with SDK 3.1.3.

      Code to reproduce

      Using the code in the docs

      Ti.UI.setBackgroundColor('white');
      var win = Ti.UI.createWindow({  
        title: 'Click window to test',
        backgroundColor: 'white',
        exitOnClose: true,
        fullscreen: false
      });
      win.addEventListener('click', function(e){
        var dialog = Ti.UI.createAlertDialog({
          cancel: 1,
          buttonNames: ['Confirm', 'Cancel', 'Help'],
          message: 'Would you like to delete the file?',
          title: 'Delete'
        });
        dialog.addEventListener('click', function(e){
          if (e.index === e.source.cancel){
            Ti.API.info('The cancel button was clicked');
          }
          Ti.API.info('e.cancel: ' + e.cancel);
          Ti.API.info('e.source.cancel: ' + e.source.cancel);
          Ti.API.info('e.index: ' + e.index);
        });
        dialog.show();
      });
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                dcassenti Davide Cassenti
                Reviewer:
                Tim Poulsen
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code