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

reload a SimpleGroupsModel causes its selectedIndex change

XMLWordPrintable

      Steps to Reproduce

      1. load the attached zul
      2. click the refresh button

      Current Result

      the selected item becomes group1-option 2

      Expected Result

      group1-option 1

      Debug Information

      1. the case just reload the whole groups model with @NotifyChange, the selection changes unexpectedly.
      2. the result has 2 selected option.

      <optgroup id="p66P5" class="z-optgroup" label="group 1">
          <option id="p66P9" class="z-option" selected="selected">group 1-option 1</option>
          <option id="p66Pd" class="z-option" selected="selected">group 1-option 2</option>
          <option id="p66Ph" class="z-option">group 1-option 3</option>
          <option id="p66Pl" class="z-option">group 1-option 4</option>
          <option id="p66Pw" class="z-option">group 1-option 5</option>
      </optgroup>
      

      Workaround

      zk-4871.js

        1. GroupsmodelVM.java
          1 kB
        2. zk-4871.js
          0.8 kB
        3. zk-4871.zul
          0.5 kB

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: