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: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.5.1.2
    • Fix Version/s: None
    • Component/s: ZK Client Engine
    • Labels:
      None

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

        Activity

        Hide
        fse fse added a comment -

        temporarily I fixed issue by overwriting setSelInView_()

        {{ <attribute w:name="setSelInView_">
        function () {
        if (this.ebody)

        { // ZK-3932 this.$setSelInView_(); //call the original method }

        }
        </attribute>}}

        Show
        fse fse added a comment - temporarily I fixed issue by overwriting setSelInView_() {{ <attribute w:name="setSelInView_"> function () { if (this.ebody) { // ZK-3932 this.$setSelInView_(); //call the original method } } </attribute>}}

          People

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

            Dates

            • Created:
              Updated: