1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Vote Rating
    0
    Answers
    3
    Isnogud is on a distinguished road

      0  

    Default Unanswered: List - onItemDisclosure ST 2.2

    Unanswered: List - onItemDisclosure ST 2.2


    Hello!

    Has anything changed to the onItemDisclosure-attribute or the disclose event?
    Since 2.2, I've updated it yesterday, the associated function isn't working anymore.

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Vote Rating
    0
    Answers
    3
    Isnogud is on a distinguished road

      0  

    Default


    Found and fixed the issue in my own code.
    But now there is another problem:


    If I tap only on the disclose-button, the tap-event is also fired.
    Am I missing any new configattributes? Because in ST 2.1.1 they were not fired at the same time.

    DiscloseAndTap.png
    **the second console.output is in the fn which is performed after the tap event.


    my code:
    Code:
    control : {
                'mylist': {
                    itemtap: 'showAnotherList',
                    disclose: 'showListItemDetails'
                }
    }

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Vote Rating
    0
    Answers
    3
    Isnogud is on a distinguished road

      0  

    Default


    Found a solution:

    Code:
            if (e.getTarget('div.x-list-disclosure')) {
                return null;
            }
    I just added this in the top of my fn for the tap-event. Its not the best way but it's working for now.

    Code:
        showAnotherList: function(list, index, target, record, e, eOpts) {
            if (e.getTarget('div.x-list-disclosure')) {
                return null;
            }
    
    ...
    
        },
    Found it here: http://www.sencha.com/forum/showthre...nd-normal-list
    But that was more than one year ago. Isn't there another, prettier solution?