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

External resources with browser attribute are not loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.6.0
    • Fix Version/s: 9.6.0.1, 9.6.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      Run keikai 5.7.0 with ZK 9.6.0,

      Load empty spreadsheet

      Current Result

      Scroll doesn't work, console error output:

      zss.wpd:30032 Uncaught ReferenceError: SimpleBar is not defined
          at zss.wpd:30032
          at doAfterMount (zk.wpd:28861)
          at mtBL1 (zk.wpd:28791)
          at mtBL0 (zk.wpd:28783)
          at mtBL (zk.wpd:28744)
          at doEnd (zk.wpd:28136)
          at Function._zkf (zk.wpd:28188)
          at zss.wpd:37845
          at doEnd (zk.wpd:28136)
          at Function._zkf (zk.wpd:28187)
      

      Expected Result

      External dependencies loaded, no error

      Debug Information

      appear to be introduced in https://github.com/zkoss/zk/commit/4adb15c5bf414b83293219bb1f094a03093ad831#diff-6b255c16e13f81ecabe5dc08c13d9f401e7f84dac8f599103ad3db69062ec8b9 based on FL testing.

       

      Seem to be related to the dependency in question (simplebar) having browser condition:

      https://github.com/zkoss/keikaicml/blob/72668b0ea2ed00dab49c523dd935cd83f49574bc/keikai/src/archive/web/js/zss/zk.wpd#L52

       

      Workaround

      use ZK 9.5.1.3

        Attachments

          Activity

            People

            Assignee:
            DevChu DevChu
            Reporter:
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: