Skip to content

Cannot reassign or bind to snippet parameter #13609

@3400442579

Description

@3400442579

Describe the bug

 <Dropdown >
         {#snippet target(node,onclick,onmouseenter,onmouseleave)}
             <button  onclick={onclick} bind:this={node} onmouseenter={onmouseenter} onmouseleave={onmouseleave}>
                 <span>icon</span>
             </button>
         {/snippet}

         <div class="p-5 w-64">
             Dropdown
         </div>
</Dropdown>

error : bind:this={node}

Reproduction

no

Logs

No response

System Info

"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
    "svelte": "5.0.0-next.265"

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions