Skip to content

Commit

Permalink
Close dialog when link is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jun 30, 2024
1 parent bd1c0f7 commit 882129d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/svelte-ux/src/routes/docs/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@
size="sm"
on:click={() => (showTableOfContents = false)}
/>
<TableOfContents icon={mdiChevronRight} class="px-4 py-2" />
<TableOfContents
icon={mdiChevronRight}
class="px-4 py-2"
on:nodeClick={(e) => {
showTableOfContents = false;
}}
/>
</Dialog>
{/key}
{/if}
Expand Down

0 comments on commit 882129d

Please sign in to comment.