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

portal layout detach js error

XMLWordPrintable

      Steps to Reproduce

      <zk>
          <portallayout id="pl">
              <portalchildren/>
          </portallayout>
          <button onClick="pl.detach()" label="click to detach portallayout"/>
      </zk>
      

      click the button

      Current Result

      JS error originating in za11y.wpd

      zk.wpd:653 Uncaught TypeError: zWatch.inListen is not a function
          at d.unbind_ (za11y.wpd:236)
          at d.unbind (zk.wpd:500)
          at d.removeChildHTML_ (zk.wpd:497)
          at d.removeChild (zk.wpd:475)
          at detach (zk.wpd:476)
          at Object.rm (zk.wpd:677)
          at m (zk.wpd:642)
          at K (zk.wpd:645)
          at Object._doCmds (zk.wpd:652)
          at Object.afterResponse (zk.wpd:663)
      

      Expected Result

      portallayout is detached without error

      Debug Information

      only happens with za11y.jar on the classpath

      typo https://github.com/zkoss/zkcml/blob/v9.5.0/za11y/src/archive/web/js/za11y/zkmax/layout-a11y.js#L281
      should be unListen

      Workaround

            Leon03 Leon03
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified