Welcome Guest. Sign in or Signup

0 Comments

How to stop propagation of events up the visual tree?

Asked by: 2747 views
a) Getting Started

0
0

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