Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mskocik opened this issue Apr 29, 2024 · 0 comments · Fixed by #11378
Closed

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

mskocik opened this issue Apr 29, 2024 · 0 comments · Fixed by #11378
Milestone

Comments

@mskocik
Copy link

mskocik commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants