This support forum belongs to the Accordion Gallery Module.
Accordion has a bug tracker here: http://github.com/ipeychev/yui3-gallery/issues
| Page 1 of 1 | [ 2 posts ] |
|
Hey there, we have a use case where we want to attach a check mark next to the title of the accordion widget head. We are accomplishing that no problem. Where we do have a problem is actually checking the checkbox. The click event of the checkbox is bubbling up to another event listener and stealing the checkbox's click.
I have added a delegate click listener to the item's contentBox, and using e.stopImmediatePropagation() I can prevent the the item from expanding AND get the check box checked... this however allows the anchor to execute it's default behavior, and since the anchors all have an href of #, it pops the browser to the top of the page. I was able to further hack the situation by giving the anchor an href of #+theIdOfTheAnchor, which is a bit better, but still causes the browser to pop around the page with every checkbox click... super annoying! I am thinking that perhaps I am listening to the wrong event, or maybe using the wrong method for stopping the propagation (I have tried just e.stopPropagation(), but I cannot get the the checkbox to take on the check). Thanks! |
|
Hello,
Can you please try with preventDefault instead stopPropagation? If it does not work, please create an example and I will take a look. Iliyan |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group