diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ebe08005..40641e8a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,7 @@ on: paths: - packages/** - examples/** + - docs/guide/** - src/** - .github/** - lib.rs diff --git a/docs/guide/src/en/interactivity/event_handlers.md b/docs/guide/src/en/interactivity/event_handlers.md index 510c77e24..77054f3fe 100644 --- a/docs/guide/src/en/interactivity/event_handlers.md +++ b/docs/guide/src/en/interactivity/event_handlers.md @@ -30,7 +30,7 @@ To learn what the different event types provide, read the [events module docs](h When you have e.g. a `button` inside a `div`, any click on the `button` is also a click on the `div`. For this reason, Dioxus propagates the click event: first, it is triggered on the target element, then on parent elements. If you want to prevent this behavior, you can call `cancel_bubble()` on the event: ```rust -{{#include ../../../examples/event_click.rs:rsx}} +{{#include ../../../examples/event_nested.rs:rsx}} ``` ## Prevent Default diff --git a/docs/guide/src/en/lib.rs b/docs/guide/src/lib.rs similarity index 100% rename from docs/guide/src/en/lib.rs rename to docs/guide/src/lib.rs