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

Nested Shadow element fails in ZK 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 10.1.0
    • 10.0.0
    • None
    • Security Level: Jimmy
    • None

      reopened: missing nested shadow element after fix

      https://zkfiddle.org/sample/2pjprnm/1-nested-if-inside-forEach-disappearing
      Run on 10.1 FL
      Click button twice

      Current: BBB not visible
      Expected: BBB visible

      Moved to new ticket instead of reopening:
      https://tracker.zkoss.org/browse/ZK-5839

      original ticket

      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

            jumperchen jumperchen
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: