Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3946

JS error: treeitem client ROD with hidden children

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 8.5.2
    • 8.5.1
    • Components
    • Security Level: Jean
    • ZK 8.5.2 S1, ZK 8.5.2 S2
    • None

      Steps to Reproduce

      run either of the 2 attachments
      click the button

      Current Result

      tree-only-value-error.zul ->

      Uncaught TypeError: Cannot read property 'value' of undefined
          at init.bind_ (zul.inp.wpd:803)
          at init.$supers (zk.wpd:11754)
          at init.bind_ (zul.inp.wpd:1917)
          at init.bindChildren_ (zk.wpd:21102)
          at init.bind_ (zk.wpd:21065)
          at init.$supers (zk.wpd:11754)
          at init.bind_ (zk.wpd:30016)
          at init.$supers (zk.wpd:11754)
          at init.bind_ (zul.wnd.wpd:1132)
          at init.bindChildren_ (zk.wpd:21102)
      

      tree-only-colSpan-error.zul ->

      zul.sel.wpd:1596 Uncaught TypeError: Cannot set property 'colSpan' of undefined
          at _fixForEmpty (zul.sel.wpd:1596)
          at zul.sel.wpd:1768
          at init.bind (zk.wpd:20986)
          at init._onDataLoading (zk.wpd:39557)
          at init._redrawRod (zk.wpd:39588)
          at init.onResponse (zk.wpd:39563)
          at _invoke (zk.wpd:15000)
          at init.fire (zk.wpd:14983)
          at zk.wpd:15121
      

      Expected Result

      no JS error

      Debug Info

      the error happens when adding a treeitem with hidden children containing certain components

      the 2 cases here demonstrate this for textbox and listbox (other components are likely affected)

      Root Cause

      potential side effect of ZK-3835 (8.5.1) since the workaround is to disable client ROD for the tree

      Workaround

      disable client rod for the surrounding tree or the individual hidden treeitem children
      as commented out in the attachments (either of the commented out lines avoids the error)

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours
                1d 4h