Results 1 to 3 of 3

Thread: List "itemTap" event fires along with the "disclose" event

    You found a bug! We've classified it as TOUCH-4588 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    6
    Vote Rating
    0
      0  

    Default List "itemTap" event fires along with the "disclose" event

    Hi Team,

    I have an issue with the Sencha Touch 2.2 with the List events.

    I have a list which has separate events defined for the "itemTap" and "disclose" events. Things were working as expected in the ST 2.1 version.

    But on upgrading to ST 2.2 version the "disclose" event also fires the "itemTap"/ "itemSingleTap" event.

    Kindly let me know how this issue can be resolved as it is breaking my app.

    Thanks
    Pradyumna Naik

    test

    Code:
    var store = Ext.create('Ext.data.Store', {
        fields  : ['firstName', 'lastName'],
        data    : [
            { firstName : 'Mitchell', lastName : 'Simoens' },
            { firstName : 'Tommy',    lastName : 'Maintz'  },
            { firstName : 'Rob',      lastName : 'Dougan'  },
            { firstName : 'Ed',       lastName : 'Spencer' },
            { firstName : 'Jamie',    lastName : 'Avins'   },
            { firstName : 'Aaron',    lastName : 'Conran'  },
            { firstName : 'Dave',     lastName : 'Kaneda'  },
            { firstName : 'Jacky',    lastName : 'Nguyen'  },
            { firstName : 'Abraham',  lastName : 'Elias'   },
            { firstName : 'Jay',      lastName : 'Robinson'},
            { firstName : 'Nigel',    lastName : 'White'   },
            { firstName : 'Don',      lastName : 'Griffin' },
            { firstName : 'Nico',     lastName : 'Ferrero' },
            { firstName : 'Jason',    lastName : 'Johnston'}
        ]
    });
    
    var list = Ext.create('Ext.List', {
        fullscreen       : true,
        itemTpl          : '{firstName} {lastName}',
        store            : store,
        onItemDisclosure : true,
        listeners        : {
            itemtap  : function() {
                console.log('itemtap');
            },
            disclose : function() {
                console.log('disclose');
            }
        }
    });
    Last edited by mitchellsimoens; 14 Jun 2013 at 5:14 AM. Reason: added test

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,020
    Vote Rating
    1363
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Hi

    Any update on this issue.

    It breaks the basic functionality that was working with 2.0.

    Is there any work around/ patch that resolves it?

    Any help is much appreciated.

    Thanks
    Pradyumna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •