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

Error "Removal causes a larger list?" on Combobox

XMLWordPrintable

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

      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>
      

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

              Created:
              Updated:
              Resolved:

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