-
Bug
-
Resolution: Fixed
-
Normal
-
3.8.3
-
None
-
None
-
Sprint 5
Steps to reproduce
- load attached zul
- right click a cell
open a custom context menu - right click another cell
actual result
the custom context menu just disappears and do not open again
expected result
open the custom context menu again after it disappears.
When you right click the "testing area", each right click open the context menu after it disappears.
debug info
- sometimes the issue doesn't happen, try to left click anywhere on the page and reproduce again
- even we open a context menu manually in Java (like the code below), the issue still happens.
@Listen("onCellRightClick = #ss") public void doContext(CellMouseEvent event) { myContext.open(event.getClientx(), event.getClienty()); }
workaround
<script><![CDATA[ //workaround jq(document).mousedown(function(event){ if (event.which == 3){ //right click zk.Widget.$('$ss').focus(); } }); ]]></script>