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

Bandbox closes its popup when clicking on day of a datebox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 10.0.0, 9.6.3
    • 9.6.2
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      <zk>
          <bandbox>
              <bandpopup>
                  <datebox/>
              </bandpopup>
          </bandbox>
      </zk>
      

      1. click the icon to open the bandbox popup
      2. click the calenar icon to open the datebox popup
      3. click any day (without prior interaction with other datebox controls, like year selection)
      see bandbox-closing-too-early-when-clicking-day.mp4

      Current Result

      a) -> the bandbox closes TOO EARLY during the mousedown event
      b) -> on mouseup also the datebox popup closes (OK)

      Expected Result

      only a datebox popup closes

      Debug info

      • when za11y.jar is on the classpath the issue doesn't happen (as on ZKfiddle). The issue only reproduces when za11y.jar is not loaded

      Workaround1

      ZK-5180.js

      workaround2

      zk.afterLoad('zul.db', function() {
      var xCalendarPop = {};
      zk.override(zul.db.CalendarPop.prototype, xCalendarPop, {
      bind_ : function()

      { xCalendarPop.bind_.apply(this, arguments); this.$n().parentElement.setAttribute('tabindex', 0); }

      });//zk.override
      });//zk.afterLoad

            gordonhsu gordonhsu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: