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.
- is duplicated by
-
ZK-5740 Can't select comboitem in popup combobox
- Open