-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarification
Description
Describe the bug
I'm building search drop-downs, and encounter the error "Uncaught TypeError: Illegal invocation" when clicking in the list. The list's array - users - is generated dynamicaly from an API call response.
Reproduction
function addOwnership({ payload }: { payload: SelectedOwnershipsOptions }): void {
...
};
{#if panelVisibility}
<div transition:fade={{ duration: 220 }} >
{#each users as { userId, username, verified, avatar, role, ownership, skills } (userId)}
<button on:click|preventDefault={() => addOwnership({ userId, username, verified, role, ownership })} >
<AvatarThumbnail
avatar={{
avatar,
title: username
}}
/>
...
</button>
{/each}
</div>
{/if}
Logs
Uncaught TypeError: Illegal invocationSystem Info
Svelte Kit with Svelte 4.2.1Severity
annoyance
bztes
Metadata
Metadata
Assignees
Labels
awaiting submitterneeds a reproduction, or clarificationneeds a reproduction, or clarification