Results 1 to 3 of 3

Thread: Ext.tab.Panel destroy error (modern toolkit)

    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
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    265

    Default Ext.tab.Panel destroy error (modern toolkit)

    Ext version tested:
    • Ext 6.0.1.250 modern-neptune
    • Ext 6.0.2.425 modern-neptune


    Browser versions tested against:
    • Chrome Version 49.0.2623.87
    • Firefox 44.0.2


    Description:
    • When a Ext.tab.Panel object is destroyed, throws an error


    Steps to reproduce the problem:
    • Load fiddle
    • click destroy button


    The result that was expected
    • Object is destroyed without error


    The result that occurs instead:
    • Error in console.log
    • Application become instable


    https://fiddle.sencha.com/#fiddle/17i4

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

    Default

    I think this is a duplicate of EXTJS-18438.

    If interested in a workaround, try this:
    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);
        }
    });

  3. #3
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    900

    Default

    any override for classic toolkit
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Similar Threads

  1. ??? Data Binding in the Ext JS Modern Toolkit
    By martini3oz in forum Sencha日本語フォーラム
    Replies: 0
    Last Post: 28 Oct 2015, 6:23 PM
  2. Tree in Modern toolkit
    By wbabich in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 13 Oct 2015, 6:35 AM
  3. Draw with modern toolkit
    By rocco.celsi in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 9 Aug 2015, 2:17 PM
  4. What's coming soon in the Modern toolkit?
    By wbabich in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 3 Aug 2015, 5:50 AM
  5. Ext.Promise on modern toolkit only??
    By chanand in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 17 Jun 2015, 8:48 PM

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
  •