Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Issue removing tab panel using removeAll()

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18438 in 6.2.0.981.
  1. #1
    Sencha Premium Member mcCrimson's Avatar
    Join Date
    Mar 2014
    Location
    hails from the 845
    Posts
    36

    Default Issue removing tab panel using removeAll()

    It seems there is an error when removing a tab panel from a container using the container's removeAll function.

    I get the error "Uncaught TypeError: Cannot read property 'ext-tab-2' of null" on Chrome, and "TypeError: me.map is null" on firefox.

    I have made a fiddle with the current nightly 6 modern neptune build to illustrate the error here:
    https://fiddle.sencha.com/#fiddle/ph8

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    That seems like a bug. I'll move this thread over to the Bugs forum.

    UPDATE: It's already here -- I think I need another coffee.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

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

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Out of interest, what are you trying to achieve here? By specifying the second parameter you're also destroying the tab bar. Is this what you intended?
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #5
    Sencha Premium Member mcCrimson's Avatar
    Join Date
    Mar 2014
    Location
    hails from the 845
    Posts
    36

    Default

    We have some bootstrap configurations that need to be set. Basically if we can't reach a server procedurally then we let the user input a url. Then we clear our deck and start fresh.

  6. #6
    Sencha Premium User
    Join Date
    Dec 2015
    Posts
    18

    Default Update on this?

    Any update on this?
    Removing a tabpanel with multiple tabs from a container with container.removeAll(true,true) was perfectly fine and worked in all previous versions of ST.

    Currently using this workaround, works well so far, but I would like to see some additional comments on this issue, is this even planned to have an official fix?
    Code:
    Ext.define('Override.Container', {
        override: 'Ext.Container',
    getComponent: function(component) {
            if (this.destroyed) {
                return null;
    }
            if (typeof component === 'number') {
                return this.getItems().getAt(component);
    }
            if (Ext.isObject(component)) {
                component = component.getItemId();
    }
            return this.getItems().get(component);
    }
    });
    
    Or override tabpanel.removeAll() to remove the tabs separately first, than the internal tabbar at last, it is the same but lot more changes.


    Thanks in advance.

  7. #7
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for posting your override. According to the bug ticket, a fix has been checked in for 6.0.2, but not yet merged.

  8. #8
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    169

    Default

    Any news about this bug? I'm using latest nightly build but it's still there...

  9. #9
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    265

    Default

    The override fixed the problem for me. Hopefully this will be pushed in the next release.

  10. #10
    Sencha Premium Member mcCrimson's Avatar
    Join Date
    Mar 2014
    Location
    hails from the 845
    Posts
    36

    Default

    So this fix was not included in 6.0.2.437?

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 12 Sep 2013, 7:58 PM
  2. Replies: 3
    Last Post: 30 Sep 2011, 3:13 AM
  3. [SOLVED]removeAll() issue in portal with portlets.
    By cnestor in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 30 Sep 2009, 10:35 AM

Tags for this Thread

Posting Permissions

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