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

zul.sel.Listbox.setSelInView() tries to access non-existing DOM element

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.1.2
    • Fix Version/s: 8.5.2
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S2

      Description

      binding listbox within (not yet opened) bandbox causes uncaught TypeError: Cannot set property 'scrollTop' of null
      at init.setSelInView_ (zk.wpd:38712)
      at Function._set2 (zk.wpd:11067)
      at init.setter.func (zk.wpd:19291)
      at init.zk.Widget.zk.$extends.set (zk.wpd:19319)
      at Object.setAttr (zk.wpd:26935)
      at doProcess (zk.wpd:25462)
      at doCmdsNow (zk.wpd:25561)
      at Object._doCmds (zk.wpd:25889)
      at Object.afterResponse (zk.wpd:26386)
      at XMLHttpRequest._onResponseReady (zk.wpd:26250)

      Seems to be a side-effect of ROD, because after opening bandbox once, error does not appear again. We analyzed, that before opening bandbox, zul.sel.Listbox.setSelinView() is called for a listbox widget, which does not yet have a corresponding DOM element (this.ebody is undefined).

        Issue Links

          Activity

          CharlesQiu CharlesQiu logged work - 27/Jun/18 9:30 AM
          • Time Spent:
            1 hour
             
            <No comment>
          CharlesQiu CharlesQiu logged work - 28/Jun/18 1:30 AM
          • Time Spent:
            1 hour, 30 minutes
             
            <No comment>

            People

            • Assignee:
              CharlesQiu CharlesQiu
              Reporter:
              fse fse
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 5 hours, 30 minutes
                5h 30m
                Logged:
                Time Spent - 2 hours, 30 minutes Remaining Estimate - 5 hours, 30 minutes
                2h 30m

                  Agile