Welcome Guest. Sign in or Signup


How to stop propagation of events up the visual tree?

Asked by: 3073 views
a) Getting Started


By default events will propagate up the visual DOM tree. For example, a user click on a li will result in the click event getting triggered on the li as well as all it’s parents. This is not desirable in many cases. So, you can use event.StopPropagation method to stop bubbling of this event. Here is an example:

Comments on Question