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

Tabbox selection was changed after clicking inside it.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: Components
    • Labels:
      None

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: