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

Tabbox selection was changed after clicking inside it.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.0
    • 7.0.0
    • Components
    • None

      select tab2 or 3 in 2nd tabox, and click the button, you will see the tabbox selects back to 1st tab

      <vbox>
      
      <tabbox>
      	<tabs>
      		<tab label="Tab1"></tab>
      		<tab label="Tab2"></tab>
      	</tabs>
      	<tabpanels>
      		<tabpanel>Panel 1
      		<button label="click me 1" onClick="//do nothing"></button>
      		</tabpanel>
      		<tabpanel>Panel 2
      		<button label="click me 2" onClick="//do nothing"></button>
      		</tabpanel>
      	</tabpanels>
      </tabbox>
      <zscript><![CDATA[
      ListModelList model = new ListModelList();
      model.add("A");
      model.add("B");
      model.add("C");
      model.addToSelection("A");
      ]]></zscript>
      <tabbox model="${model}">
      	<template name="model:tab">
      		<tab label="${each}"></tab>
      	</template>
      	<template name="model:tabpanel">
      		<tabpanel>Panel ${each}
      			<button label="click me ${each}" onClick="//do nothing"></button>
      		</tabpanel>
      	</template>
      </tabbox>
      
      </vbox>
      

            jumperchen jumperchen
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: