You found a bug! We've classified it as EXTJS-11156 . 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
    Aug 2012
    Posts
    58
    Vote Rating
    1
    zzhouag is on a distinguished road

      0  

    Default Tabchange event oldtab is null

    Tabchange event oldtab is null


    I use ext-4.2, when close current active tab successively, after first close action(correct), oldtab is always null.
    I tried 4.2.1, the problem still there.
    Please help! Thank you!

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,663
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    Could you create a short testcase to help us get a better understanding what exactly you are doing?
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    58
    Vote Rating
    1
    zzhouag is on a distinguished road

      0  

    Default


    Sorry, I try to explain that clearly. As the figure below, I have a tree and I can open tab by click the tree node, it is a simple case without any complicated functions.
    Attachment 45575

    And in the tab panel, I register a tabchange event, and log the information about the previously active tab
    Code:
    listeners: {    
                    tabchange: function(tab, newtab, oldtab){
                        console.log(oldtab);
                    ......
                    }
                }
    When I just change the tabs without closing, the log looks correct.

    If I try to close the active tabs, it also will trigger the tabchange event and activate the previously active tab. But at this time, there are something wrong with the logs.

    I close the tab from right to left and make sure that every time I close the active tab to trigger the tabchange event.

    After I close the first tab, the tabchange event got the 'oldtab', and everything is OK.
    11.jpg1.jpg

    Then I close the second tab, but the tabchange event shows previously active tab is null
    22.jpg2.jpg

    And if I continue to close active tabs, it will always show null of 'oldtab', just the first closing action works.
    Because I need to use the previously tab, so I don't know where is going wrong.

    I try my best to explain clearly, I hope you can understand. Thank you very much!

  4. #4
    Sencha Premium Member jnesis's Avatar
    Join Date
    Oct 2010
    Location
    Mulhouse, France (68200)
    Posts
    48
    Vote Rating
    16
    jnesis will become famous soon enough

      0  

    Default


    Hi,

    Try to replace tabchange listener by beforetabchange.
    Hoping this helps you.



    Alexandre AUGEN - Computer Engineer
    JNESIS
    20c rue du Chemnitz
    68200 Mulhouse - France
    Tél: +33 3 89 36 60 39

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    58
    Vote Rating
    1
    zzhouag is on a distinguished road

      0  

    Default


    Hi,

    I have tried beforetabchange, but still the same result...

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,637
    Vote Rating
    400
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Moved thread to bugs and linked to bug tracker

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar