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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.1
    • 7.0.8, 9.6.0.1
    • Components
    • Security Level: Jimmy

      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.

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

              Created:
              Updated:
              Resolved: