Skip to content

Commit

Permalink
feat(tabs): remove dispatch event (unused event value)
Browse files Browse the repository at this point in the history
  • Loading branch information
macgeargear committed Sep 13, 2024
1 parent 685c527 commit 8ccf5ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/components/Tabs/TabsTrigger.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { createEventDispatcher, onMount } from 'svelte';
import { onMount } from 'svelte';
import { getTabsContext } from './tabsContext';
import { cn } from '$lib/utils';
import { slide } from 'svelte/transition';
Expand All @@ -8,7 +8,6 @@
const tabsContext = getTabsContext();
const { activeTab } = tabsContext;
const dispatch = createEventDispatcher();
onMount(() => {
tabsContext.registerTab({ value });
Expand All @@ -18,7 +17,6 @@
function handleClick() {
tabsContext.selectTab(value);
dispatch('click', { value });
}
</script>

Expand Down

0 comments on commit 8ccf5ad

Please sign in to comment.