rahul1671986 / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Jstree onclicTopics propagated to parent nodes #674

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?

1. On the showcase Tree (JSON Data) Open node B0 and click on B20
2. Close the resulting alert dialog
3. Click again on node B0 expand icon as if to close it

What is the expected output? What do you see instead?

Node B0 to close, but onclick for node B0 is fired again and the alert dialog 
pops up instead of just closing the node. It seems the onclick is bubbled up to 
parent elements. I notice this in my project as well but is easily reproducable 
on the showcase

Which struts2 version?
2.2.1

Which struts2-jquery plugin version?
3.1.1

Please provide any additional information below.
I tried event.stopPropagation() in the subscriber for onClickTopics but with 
same results

Original issue reported on code.google.com by Travers....@gmail.com on 12 Oct 2011 at 12:15

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 15 May 2012 at 1:06