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

Thread: JS error at card layout with chart

    You found a bug! We've classified it as EXTJS-16351 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default JS error at card layout with chart

    I found problem.
    • Main form with card layout.
    • First item is chart component.
    • Second item is just panel.
    • Change activeitem to second panel.
    • Then change activeitem to first panel.
    • You'll see JS error in your console.
    You can see this problem and solution at

    https://fiddle.sencha.com/#fiddle/f6u

  2. #2
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    I don't see any error when clicking the two or one button.

    What does the error say?... and how to reproduce it?

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

    Default

    Agreed. I tried in various browsers and operating systems. Can you please provide more details on how to recreate this issue?

  4. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    This is most likely not related to the problem at hand, but you are over-nesting panels.

    See this ticket for more info.

  5. #5

    Default

    Try it. You'll see JS error your debugger console.https://fiddle.sencha.com/#fiddle/f7s

  6. #6

    Default

    This problem should be occure in any browser.Because that method don't check the function exisits.if (c.isFocusable()) {

  7. #7
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    28

    Default Same issue

    I have the same problem. I reproduce it easier with the chart on the second panel.
    Here is the fiddle
    https://fiddle.sencha.com/#fiddle/f7v

    Just let it load the first panel and then click the "page 2"

    I have a slightly different workaround, but I think the original workaround is more encompassing.

  8. #8
    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.

  9. #9

    Default

    Anybody found workaround for this ...??

  10. #10

    Default

    Try this override.

    PHP Code:
    Ext.define('Override.ComponentQuery', {
        
    override'Ext.ComponentQuery'
    },function () {
        
        
    Ext.apply(this.pseudos, {
            
            
    focusable: function(cmps) {
                var 
    len cmps.length,
                    
    results = [],
                    
    0,
                    
    c;
                
                for (; 
    leni++) {
                    
    cmps[i];
                    
    // If this is a generally focusable Component (has a focusEl, is rendered, enabled and visible)
                    // then it is currently focusable if focus management is enabled or if it is an input field, a button or a menu item
                    
    if (c.isFocusable && c.isFocusable()) {
                    
    // if (c.isFocusable()) {
                        
    results.push(c);
                    }
                }
                
                return 
    results;
            },

        });
    }); 

Page 1 of 2 12 LastLast

Posting Permissions

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