Skip to content

Commit

Permalink
Fix on:click usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0wst committed Feb 4, 2025
1 parent 5f73f67 commit d013b54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/(protected)/admin/AdminMenuButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<a
{href}
on:click={onclick}
{onclick}
class={`flex items-center gap-x-3 rounded-lg px-4 py-3 text-sm font-medium transition-all ${
isActive
? 'bg-accent/10 text-accent dark:bg-accent-dark/10 dark:text-accent-dark'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
}
</script>

<svelte:window on:click={handleClickOutside} />
<svelte:window onclick={handleClickOutside} />

<Modal
title={mode === 'ADD' ? 'Add Overlay Group' : `Update ${$form.name} Overlay Group`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
}
</script>

<svelte:window on:click={handleClickOutside} />
<svelte:window onclick={handleClickOutside} />

<Modal
title={mode === 'ADD' ? 'Add Static Element Group' : `Update ${$form.name} Static Element Group`}
Expand Down

0 comments on commit d013b54

Please sign in to comment.