Results 1 to 4 of 4

Thread: Cannot read property 'contains' of undefined in onFocusableContainerMousedown

  1. #1
    Sencha Premium User alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    324
    Answers
    9

    Default Cannot read property 'contains' of undefined in onFocusableContainerMousedown

    Some of our users manage to produce the following error in an application based on ExtJS 6.0.2:

    Code:
    TypeError: Cannot read property 'contains' of undefinedat Ext.util.FocusableContainer.onFocusableContainerMousedown
    at Ext.util.Event.fire
    at Ext.event.publisher.Dom.fire
    at Ext.event.publisher.Dom.publish
    at Ext.event.publisher.Dom.doDelegatedEvent
    at Ext.event.publisher.Gesture.doDelegatedEvent
    at Ext.event.publisher.Dom.onDelegatedEvent
    at Anonymous function
    Why/how could this possibly happen? I don't see any of my own code in the stack trace; would this be a bug in the framework?

  2. #2
    Sencha - Ext JS Dev Team nohuhu's Avatar
    Join Date
    Jun 2011
    Location
    Redwood coast
    Posts
    402
    Answers
    26

    Default

    This should be fixed in 6.2.
    Regards,
    Alex.

  3. #3
    Sencha Premium User alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    324
    Answers
    9

    Default

    Good to hear - can I get more info about the fix for a possible backport? Switching to 6.2.x is out of question right now.

    I didn't find the function at all in the FocusableContainer mixin... where did it move?

  4. #4
    Sencha - Ext JS Dev Team nohuhu's Avatar
    Join Date
    Jun 2011
    Location
    Redwood coast
    Posts
    402
    Answers
    26

    Default

    FocusableContainer was refactored and its main element is no longer focusable. It is no longer necessary to listen to mousedown events on the element, so onFocusableContainerMousedown method was removed.

    The refactoring touched several other classes as well so it's hardly backportable. You need to update your app to Ext JS 6.2 to take advantage of the fixes.
    Regards,
    Alex.

Similar Threads

  1. Cannot read property 'log' of undefined
    By alexander.urban in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 26 Jan 2015, 7:12 AM
  2. Replies: 3
    Last Post: 16 Dec 2014, 7:13 AM
  3. Can not read property 'fn' of undefined
    By bee in forum Ext: Q&A
    Replies: 6
    Last Post: 7 Sep 2011, 1:56 PM
  4. Cannot read property 'length' of undefined
    By Salim Drame in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 5 Aug 2011, 5:26 AM
  5. Help: Cannot Read Property 'id' of undefined
    By JCFMachado in forum Ext: Discussion
    Replies: 1
    Last Post: 16 Jun 2011, 3:06 AM

Posting Permissions

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