0

Menu is not accepting the onClick event when it has a popup menu on version 7.0

asked 2014-02-21 16:36:21 +0800

dgofast gravatar image dgofast
9 1

updated 2014-02-21 16:37:22 +0800

When you make a click on a menú that has a popup child, the parent is not firing the onClick event, it used to work properly on version 6.5 !

Do you have a work around?

delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

answered 2014-02-25 03:41:16 +0800

vincentjian gravatar image vincentjian
2245 6

Here is the sample code I created on zkfiddle and I don't see the issue.

link publish delete flag offensive edit
0

answered 2014-02-25 04:49:51 +0800

dgofast gravatar image dgofast
9 1

updated 2014-02-25 04:50:44 +0800

I couldn't login where you put the code, but here is the test code

<zk>
<menubar>
    <menu label="Project" onClick='lbl.setValue("Menu clicked")'>
        <menupopup>
            <menuitem label="New" onClick="lbl.setValue(self.label)" />
            <menuitem label="Open" onClick="lbl.setValue(self.label)" />
            <menuitem label="Save" onClick="lbl.setValue(self.label)" />
            <menuseparator />
            <menuitem label="Exit" onClick="lbl.setValue(self.label)" />
                        <menu label="Second Level" onClick='lbl.setValue("I dont work")'>
                              <menupopup>
                              <menuitem label="I do" onClick='lbl.setValue("I do")'/>
                              </menupopup>  
                        </menu>  
        </menupopup>

    </menu>
</menubar>
<label id="lbl" />

</zk> The click on "Second Level" is just never occurred . Just try it !

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-02-21 16:36:21 +0800

Seen: 17 times

Last updated: Feb 25 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More