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

iOS: View: Click event of view not fired when view clicked immediately after dismissing an alert

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.1
    • Fix Version/s: Release 3.0.2
    • Component/s: iOS
    • Environment:

      Titanium Studio: 2.1.1.201207171343
      Titanium SDK: 2.1.1.v20120718121609
      Device: iPhone 4S (v5.1), iPhone Simulator (v5.0)

      Description

      Click event of view not fired when view clicked immediately after dismissing an alert.

      This is not a regression. The issue occurs as far as 1.8.2

      Steps to Reproduce:
      1. Create an application with code below and launch the app
      2. Click on the label 'Click Me'. An alert is shown
      3. Dismiss the alert and immediately click on the red view. (the issue does not occur if view is not clicked instantly)

      Actual: The click event does not fire for the view
      Expected: An alert should appear and info logged in console on click of view

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var view = Titanium.UI.createView({
      	backgroundColor : 'red',
      	height : 50,
      	top: 100
      });
      var label=Ti.UI.createLabel({
      	text:"Click Me",
      	top:0
      })
      view.addEventListener('click', function(e){
      	alert('clicked');
      	Ti.API.info('clicked');
      });
      label.addEventListener('click', function(e){
      	alert('clicked label');
      	//Ti.API.info('clicked label');
      });
      win.add(label);
      win.add(view);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              shameerj Shameer Jan
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code