Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User p5hema2's Avatar
    Join Date
    May 2012
    Location
    Jena Germany
    Posts
    14
    Vote Rating
    1
    p5hema2 is on a distinguished road

      0  

    Default Lister Bug in Navigation View ST 2.2b1

    Lister Bug in Navigation View ST 2.2b1


    Bug: show event is fired on item that is poping.
    Expected: the show event shouldn't fire.
    Steps to reproduce:
    • create a navigation view
    • push a view
    • show event is fired as expected
    • close the detailcard with the backbutton
    • show event is fired again. NOT EXPECTED
    Best regards Martin Heß

    p.s.

    repo deleted. The testcase below is simpler and shows the same bug.
    Post updated.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    434
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    A test case needs to be much simpler like this:

    Code:
    var i = 0;
    
    function createCard() {
        i++;
    
        return {
            title     : 'New Card ' + i,
            html      : 'new card ' + i,
            listeners : {
                show : function () {
                    console.log('show', i);
                },
                hide : function () {
                    console.log('hide', i);
                }
            }
        };
    }
    
    Ext.Viewport.add({
        xtype : 'navigationview',
        items : [
            {
                title : 'Home',
                items : [
                    {
                        xtype   : 'button',
                        text    : 'Push View',
                        handler : function (button) {
                            var navView = button.up('navigationview'),
                                card    = createCard();
    
                            navView.push(card);
                        }
                    }
                ]
            }
        ]
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User p5hema2's Avatar
    Join Date
    May 2012
    Location
    Jena Germany
    Posts
    14
    Vote Rating
    1
    p5hema2 is on a distinguished road

      0  

    Default


    I apologize,

    your simple testcase shows the same error, and the hide event is fired on push as well.

    Best Regards,
    Martin Heß