Skip to content

Commit 924f60f

Browse files
committed
remove unnecessary stopPropagation
1 parent 88ac017 commit 924f60f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/tutorial/[slug]/Menu.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
transition:slide={{ duration }}
8484
>
8585
<button
86-
on:click|stopPropagation={() => {
86+
on:click={() => {
8787
if (expanded_part !== part.slug) {
8888
expanded_part = part.slug;
8989
expanded_chapter = part.chapters[0].slug;
@@ -102,7 +102,7 @@
102102
aria-current={chapter.slug === current.chapter.slug ? 'step' : undefined}
103103
>
104104
<button
105-
on:click|stopPropagation={() => (expanded_chapter = chapter.slug)}
105+
on:click={() => (expanded_chapter = chapter.slug)}
106106
style="width: 100%; text-align: start;"
107107
>
108108
<!-- <img src={arrow} alt="Arrow icon" /> -->

0 commit comments

Comments
 (0)