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

Treechildren.invalidate() only re-renders the first Treeitem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.8, 9.6.0.1
    • Fix Version/s: 9.6.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      Steps to Reproduce

      <zk>
        <button label="invalidate treechildren" onClick="tc.invalidate();"/>
        <tree>
          <treechildren id="tc">
            <treeitem label="item1"/>
            <treeitem label="item2"/>
            <treeitem label="item3"/>
            <treeitem label="item4"/>
            <treeitem label="item5"/>
          </treechildren>
        </tree>
      </zk>
      

      Click the button (2x in ZK 7.0.8)

      Current Result

      Only the first treeitem remains in the tree

      Expected Result

      All treeitems remain in the tree

      Debug Information

      The network response contains all the treeitems so this sounds like a client side issue.

      Workaround


        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: