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

listbox (mold="select") re-renders after first au response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 8.6.1
    • 8.6.0, 8.6.0.1
    • Components
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      <zk xmlns:w="client">
      	<listbox mold="select" w:onBind="zk.log('render')">
      		<listitem label="aaa" selected="true"/>
      		<listitem label="bbb" />
      	</listbox>
      	<button onClick="" label="trigger au"/>1st click triggers unnecessary re-render of the listbox
      </zk>
      

      click the button

      Current Result

      the first click causes the listbox to re-render

      Expected Result

      only re-render when necessary

      Debug Info

      Root Cause

      side effect of ZK-2756

      Workaround

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified