diff --git a/src/Components/test/testassets/BasicTestApp/RouterTest/Links.razor b/src/Components/test/testassets/BasicTestApp/RouterTest/Links.razor index b2addca14b..5851ae068c 100644 --- a/src/Components/test/testassets/BasicTestApp/RouterTest/Links.razor +++ b/src/Components/test/testassets/BasicTestApp/RouterTest/Links.razor @@ -39,3 +39,41 @@ Not a component Cannot route to me + +
+ Note that navigation actions are independent of event bubbling. Stopping click event propagation before + it reaches an <a> element does not stop navigation from happening. This is by design, + because the same is true natively in JavaScript. Navigation only responds to preventDefault. +
+ + + + + + +@code { + bool ancestorPreventDefault; + bool targetPreventDefault; + bool descendantPreventDefault; + int counter; +}