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

Error "Removal causes a larger list?" on Combobox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 7.0.7, 8.0.1
    • 8.0.0, 7.0.6.1
    • Components
    • None

    Description

      the example below reproduces the issue, when a model element is removed before the Combobox has initially rendered

      <zk>
       <combobox id="combo"/>
       <zscript><![CDATA[
        ListModelList model = new ListModelList();
        model.add("aaaa");
        model.add("bbbb");
        model.add("cccc");
        combo.setModel(model);
        //workaround to force rendering all items
        //combo.onInitRender(new Event("", combo, 0));
        model.remove(1);
       ]]></zscript>
      </zk>
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h