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

Listbox selects a wrong item with listgroup

    XMLWordPrintable

Details

    Description

      Steps to Reproduce

      1. load the attached zul
      2. check selected item

      Current Result

      item 1-2

      Expected Result

      item 1-1

      Debug Information

      The index of model
      0: "group 1"
      [1]: "item 1-1"
      2: "item 1-2"
      3: "group 2"
      4: "item 2-1"
      5: "item 2-2"

      The index of <select> (optgroups are not selectable)
      0: "item 1-1"
      [1]: "item 1-2"
      2: "item 2-1"
      3: "item 2-2"

      Workaround

      Attachments

        1. ListGroupVM.java
          1 kB
          hawk
        2. zk-4872.zul
          0.7 kB
          hawk

        Issue Links

          Activity

            People

              rudyhuang rudyhuang
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 4 hours Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - 4 hours Remaining Estimate - 4 hours
                  4h