Steps to Reproduce
- visit the zul with debug-js = false in zk.xml
- click the menuitem with mobile browser
Current Result
- see it prints 2 lines of log
- check ajax request payload, it contains 2 onClick command
Expected Result
send 1 onClick command
Debug Information
- if debug-js=true, the bug doesn't happen
- call stacks are different in 2 cases, this.$super() calls different parent widgets
mobile && debug-js=false
call stack:
zul.menu.Menuitem.prototype.doClick_() in menuite.ts this.$super('doClick_', evt, true); zul.menu.Menuitem.doClick_() in menuitem-touch.ts
mobile && debug-js=true
call stack:
Widget.prototype.doClick_() this.$super('doClick_', evt, true); zul.menu.Menuitem.doClick_() in menuitem-touch.ts
potential problem
need to find the root cause of the different behavior between compressed and uncompressed js and solve it because it might affect multiple widgets
Workaround
- blocks
-
KEIKAI-802 open format dialog produces a js error: Uncaught Handle required for [object Object]
- Closed
- is duplicated by
-
ZK-5742 clicking menuitem fires 2 onClick events in mobile browser
- Closed