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

Can't select a comboitem when a combobox in a window with another modal window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 9.6.2
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      <zk>
        <window mode="modal" title="modal">
              modal
              <textbox/>
          </window>
          <window border="normal" mode="overlapped" title="select an item">
              <combobox readonly="true">
                  <comboitem label="a"/>
                  <comboitem label="b"/>
                  <comboitem label="c"/>
              </combobox>
              <datebox/>
          </window>
      </zk>
      

      1. select an comboitem
      or click the datebox

      Current Result

      the combobox doesn't accept the selection

      Expected Result

      the modal window should be on top of all other non-modal windows, so a user can't operate the combobox.

      Debug Information

      • This problem is due to the focus-grabbing of a modal window. This behavior causes the popup close so that the clicking doesn't fire onClick event on a comboitem. The clicking doesn't really click a comboitem because of the combobox popup close. You also cannot open a datebox because of the same reason.
        But the focus-grabbing is a reasonable design. So the problem is why a user can operate the combobox, it should be behind the modal window. Because a modal window should be on top of the page and block everything else.

      Alternative

      • Use Overlapped window
      • Make the 2nd window as a modal window
      • put the 2nd window as a child of the 1st modal window

      Propose solution

      provide a widget property to disable the focus grabbing behavior.

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: