Details
-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
2.5.0
-
None
-
ZK 7.0.2 for all browser
Description
there are two issues.
1. When you give right click on the text, it should show the context menu.
2. onOpen event for menupopup shows message box two times after right click. It should show just one time.
The observation is when the text gets right click, the DOM tree of menupopup changed but the CSS property "display:none" is still the same.
Following is the test case.
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <z:zkhead /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> </head> <body> <z:page> <z:div context="popup"> <h1>Right Click me !!</h1> </z:div> <z:menupopup onOpen='Messagebox.show("test")' id="popup"> <z:menuitem label="item1"></z:menuitem> </z:menupopup> </z:page> </body> </html>