Skip to content

Commit 9166c6c

Browse files
Fix dropdown callbacks (#253)
1 parent 4f55177 commit 9166c6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/components/Nav.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<button
7777
class={segment === 'crm' ? activeLinkClass : linkClass}
7878
aria-haspopup="true"
79-
on:click={toggleDropdown("fairCalendar")}
79+
on:click={() => toggleDropdown("fairCalendar")}
8080
>
8181
{#if segment === 'crm'}
8282
<span class={activeClass} aria-hidden="true" />
@@ -122,7 +122,7 @@
122122
<button
123123
class={segment === 'accounting' ? activeLinkClass : linkClass}
124124
aria-haspopup="true"
125-
on:click={toggleDropdown("accounting")}
125+
on:click={() => toggleDropdown("accounting")}
126126
>
127127
<span class="inline-flex items-center">
128128
<AccountingIcon className={'w-5 h-5'} />
@@ -165,7 +165,7 @@
165165
<button
166166
class={segment === 'human_resources' ? activeLinkClass : linkClass}
167167
aria-haspopup="true"
168-
on:click={toggleDropdown("human_resources")}
168+
on:click={() => toggleDropdown("human_resources")}
169169
>
170170
{#if segment === 'human_resources'}
171171
<span class={activeClass} aria-hidden="true" />

0 commit comments

Comments
 (0)