Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Button error

    Haven't figured out how to recreate this problem yet. But, we had a user report this error to us with a recent 8.2 nightly

    Code:
    08:36:09.785:TMR7:WARN:Log:TypeError: Cannot read property '0' of undefined
        unnamed() @ 
        Button.getTitleCell()
        Button.setTableClassName()
        Button.stateChanged()
        StatefulCanvas.setBaseStyle()
        [c]Hover.show()
        DynamicForm._showItemHover()
        FormItem._handleTitleHover()
        Hover._doAction()
        [c]Class.fireCallback()
        Timer._fireTimeout()

    Could it be related to this snippet needing a null check on rows and cells?


    ,isc.A.getTitleCell=function isc_Button_getTitleCell(){if(!this.getHandle())return null;var _1=this.getHandle().firstChild.rows[0].cells[0];return _1}

    #2
    The stack trace definitely indicates that an unexpected DOM structure was encountered, so a null check would get rid of this.
    We've modified the source to include a null check, so this error should go away.
    However it does imply that the app code is somehow attempting to manipulate the DOM elements within a Button in a way that is possibly invalid, so we would be interested in seeing the test case that led to this error for you.

    Regards
    Isomorphic Software

    Comment


      #3
      Thanks, is that fix in both 8.2 and 8.3 nightlies?

      Comment


        #4
        Yes - the fix is in both branches

        Comment

        Working...
        X