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

bandbox closes its popup when switching active page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 10.0.0, 9.6.3
    • 9.6.1
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      a bandbox whose popup contains a Listbox in paging mold.

          <bandbox>
              <bandpopup>
                  <vlayout>
                      <listbox rows="3" width="300px"
                               onSelect="bd.value=self.selectedItem.label;bd.close();" mold="paging" pageSize="3">
                          <listhead>
                              <listheader label="Name"/>
                              <listheader label="Description"/>
                          </listhead>
                          <listitem>
                              <listcell label="John"/>
                              <listcell label="CEO"/>
                          </listitem>
                          <listitem>
                              <listcell label="Joe"/>
                              <listcell label="Engineer"/>
                          </listitem>
                          <listitem>
                              <listcell label="Mary"/>
                              <listcell label="Supervisor"/>
                          </listitem>
                          <listitem>
                              <listcell label="John"/>
                              <listcell label="CEO"/>
                          </listitem>
                      </listbox>
                  </vlayout>
              </bandpopup>
          </bandbox>
      

      1. open the bandbox popup in Chrome
      2. click next page on the listbox

      Current Result

      the popup close

      Expected Result

      the popup keeps open

      Debug Information

      • firefox doesn't have this bug

      Root cause

      e.relatedTarget could be null in chrome, see https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget

      Workaround

      zk-5155.js

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

              Created:
              Updated:
              Resolved: