widget unbind causes a js error

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 10.1.0, 10.2.1
    • Component/s: None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      1. click "show popup"
      2. click "close" button to close the popup
      3. do step 1 and 2 for the 2nd time
      4. click "rerender"

      Current Result

      zk.wpd:32376 Uncaught TypeError: Failed to mount: Cannot read properties of undefined (reading '0')
      at $subclass$.fireX (zk.wpd:32376:20)
      at $subclass$.fire (zk.wpd:32487:17)
      at $subclass$.<anonymous> (zk.wpd:31813:12)
      at $subclass$.unbind_ (zkbind.wpd:111:22)
      at zk.load._webpack_modules../zul/src/main/resources/web/js/zul/Widget.ts.Widget.unbind (zk.wpd:39821:30)
      at zk.load._webpack_modules../zul/src/main/resources/web/js/zul/wgt/Button.ts.Button.unbind (zk.wpd:41705:30)
      at _webpack_modules../zk/src/main/resources/web/js/zk/widget.ts.Widget.unbindChildren (zk.wpd:31836:17)
      at $subclass$.<anonymous> (zk.wpd:31793:10)
      at $subclass$.unbind_ (zkbind.wpd:111:22)
      at zk.load._webpack_modules../zul/src/main/resources/web/js/zul/Widget.ts.Widget.unbind (zk.wpd:39821:30)

      Expected Result

      no error

      Debug Information

      • could be caused by the fix of ZK-5455
      • 9.6.5, 10.0.0 don't have this bug
      • another cause could be related to removing listeners mentioned at ZK-5981

      Workaround

      zk-5985.js

        1. zk-5985.js
          0.8 kB
        2. zk-5985.zul
          0.7 kB

            Assignee:
            Unassigned
            Reporter:
            hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: