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

invalidate a tabbox produces infinite javascript errors

XMLWordPrintable

    • ZK 9.5.0 S1
    • None

      Steps to Reproduce

      1. Click Reload center area to load the content
      2. Scroll to tab number 50 or something
      3. Click Reload center area to reload the content. Check the console in chrome developer tools.

      Current Result

      zul.tab.wpd:964 Uncaught TypeError: Cannot set property 'scrollLeft' of null
      at init._fixTabsScrollLeft (zul.tab.wpd:964)
      at goscroll (zul.tab.wpd:775)
      at zul.tab.wpd:798
      _fixTabsScrollLeft @ zul.tab.wpd:964
      goscroll @ zul.tab.wpd:775
      (anonymous) @ zul.tab.wpd:798
      setInterval (async)
      _doScroll @ zul.tab.wpd:791
      _scrollcheck @ zul.tab.wpd:733
      onSize @ zul.tab.wpd:575
      _invoke @ zk.wpd:16465
      fire @ zk.wpd:16448
      _fire @ zk.wpd:16591
      fireDown @ zk.wpd:16808
      fireDown @ zk.wpd:18568
      fireSized @ zk.wpd:19377
      vflex @ zk.wpd:20453
      (anonymous) @ zk.wpd:11277
      _setFirstChildFlex @ zul.layout.wpd:390
      unbind_ @ zul.layout.wpd:1022
      unbindChildren_ @ zk.wpd:22729
      unbind_ @ zk.wpd:22691
      unbind_ @ zkbind.wpd:44
      $supers @ zk.wpd:12956
      unbind_ @ zul.layout.wpd:124
      unbindChildren_ @ zk.wpd:22729
      unbind_ @ zk.wpd:22691
      unbind_ @ zkbind.wpd:44
      unbind @ zk.wpd:22571
      removeChildHTML_ @ zk.wpd:22367
      removeChild @ zk.wpd:21111
      detach @ zk.wpd:21131
      rm @ zk.wpd:28814
      doProcess @ zk.wpd:27085
      doCmdsNow @ zk.wpd:27187
      _doCmds @ zk.wpd:27554
      afterResponse @ zk.wpd:28061
      _onResponseReady @ zk.wpd:27916
      XMLHttpRequest.send (async)
      ajaxSendNow @ zk.wpd:27157
      sendNow @ zk.wpd:27782
      (anonymous) @ zk.wpd:27127
      setTimeout (async)
      ajaxSend2 @ zk.wpd:27127
      ajaxSend @ zk.wpd:27121
      send @ zk.wpd:27426
      sendAU_ @ zk.wpd:23353
      fireX @ zk.wpd:23291
      fire @ zk.wpd:23392
      fireOnSelect @ zul.sel.wpd:1026
      _select @ zul.sel.wpd:861
      _doItemSelect @ zul.sel.wpd:594
      doSelect_ @ zul.sel.wpd:1512
      doSelect_ @ zk.wpd:23640
      doSelect_ @ zk.wpd:23640
      _doEvt @ zk.wpd:26475
      (anonymous) @ zk.wpd:26675
      dispatch @ zk.wpd:5410
      elemData.handle @ zk.wpd:5062

      Expected Result

      no error

      Workaround

      • assign a model to Tabbox
      • js patch

        1. t11255.zul
          1.0 kB
        2. T11255Composer.java
          2 kB
        3. tabbox-zk-4591.js
          0.5 kB

            rudyhuang rudyhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h