Skip to content

Svelte 5: cannot combine multiple with bind:this on select element #11377

@mskocik

Description

@mskocik

Describe the bug

Dynamic multiple attribute is not allowed in combination with bind:this. Works in v4.

Note: This is different from #1270 because I am not binding value

Reproduction

<script>
	let multiple = true;
	let el;
</script>

<select {multiple} bind:this={el}></select>

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACkWNwQoDIRBDf0XmXOjdukK_o9tDq7N0YHRFx0IR_71aWHpLwkvSYCPGAvrWID4CgoZrSnAC-aRpyhtZcPiy1-xmYorLlMSucRVGUaGyUGJUi5Jc8XLkyEOa85-OpiCjE9WOSldPil7Li8rSkLsd-A-x4zDsnjZCD3rO9nv_An338GurAAAA

Logs

No response

System Info

svelte 5

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