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

zk reload embedded element missing rmDesktop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 9.0.0
    • ZK Client Engine
    • Security Level: Jimmy
    • None

      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);
      

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

              Created:
              Updated:
              Resolved: