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

Bandbox closes its popup when clicking on day of a datebox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.6.2
    • Fix Version/s: 10.0.0, 9.6.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: