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

zk reload embedded element missing rmDesktop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.0
    • Fix Version/s: 9.0.1
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      <!DOCTYPE html>
      <html>
      <head>
          <script src="/zkau/web/js/zkmax/embedded/embedded.js"></script>
      </head>
      <body>
          <button id="trigger">load zk</button>
          <div id="zkapp"></div>
          <script>
              trigger.addEventListener('click', () => {
                  zEmbedded.load('zkapp', '/any.zul');
              });
          </script>
      </body>
      </html>
      

      click the button multiple times

      Current Result

      each time a new desktop is created at server side
      the rmDesktop command is missing

      Expected Result

      working rmDesktop mechanism

      Debug Information

      Workaround

      call rmDesktop manually before re-loading the embedded zul

            zAu._rmDesktop(desktop);
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: