Skip to content

Commit

Permalink
remove unnecessary stopPropagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 27, 2024
1 parent 88ac017 commit 924f60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/tutorial/[slug]/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
transition:slide={{ duration }}
>
<button
on:click|stopPropagation={() => {
on:click={() => {
if (expanded_part !== part.slug) {
expanded_part = part.slug;
expanded_chapter = part.chapters[0].slug;
Expand All @@ -102,7 +102,7 @@
aria-current={chapter.slug === current.chapter.slug ? 'step' : undefined}
>
<button
on:click|stopPropagation={() => (expanded_chapter = chapter.slug)}
on:click={() => (expanded_chapter = chapter.slug)}
style="width: 100%; text-align: start;"
>
<!-- <img src={arrow} alt="Arrow icon" /> -->
Expand Down

0 comments on commit 924f60f

Please sign in to comment.