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

Nested Shadow element fails in ZK 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 10.0.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      Run in ZK 10

      <zk>
          <zscript><![CDATA[
              int counter = 0;
              ListModelList items = new ListModelList();
          ]]></zscript>
          <div apply="org.zkoss.bind.BindComposer">
              <forEach items="@init(items)">
                  <div>
                      <label value="${each}"/>
                      <if test="@init(true)">
                          conditional
                      </if>
                  </div>
              </forEach>
          </div>
          <button onClick="items.add(++counter)" label="add"/>
      </zk>
      

      Press button twice

      Current Result

      If shadow element content is displayed after first click, disappear after 2nd click

      Expected Result

      if shadow element should always be displayed

      Debug Information

      Workaround

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: