# Stop propagation to parent component

aUser
127 4

Hello,

Here I have created a simple fiddle where there is a Bandbox and a Groupbox.

From this thread, @hawk said that "event.stopPropagation" doesn't stop an event to be fired to the parent component, rather to the chain of events that this component (the Combobox) should handle.

From the fiddle however, you can see that when you click on the down arrow to select an item on the combobox, the caption of the Groupbox doesn't close, but if you remove the onClick="event.stopPropagation()" of the Combobox, the caption does close/open each time you press the down arrow. Why does this work?

I'm interested however in not closing the Bandbox's popup when i select an item from the Combobox, but I don't know how to stop the event of the combobox selection to be fired to the Bandbox. If i click on the down arrow here, nothing happens (whereas in the Groupbox the caption opens/closes each time) but the Bandbox's popup does close each time i select an item.

Thank you.

delete retag edit
Be the first one to answer this question!
[hide preview]