-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Svelte 5: svelte:element with its this
set to input
or textarea
doesn't call their actions
#11075
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
Comments
upon further tries I noticed that the reactivity on the said <svelte:options runes />
<script lang="ts">
let id = $state("something");
setTimeout(() => {
id = "something else"
}, 2000)
</script>
<svelte:element this="input" {id}></svelte:element> |
@brunnerh interesting. but I'm sure that it doesn't work like it should. would you be able to confirm your results on your local machine? Since REPL runs entirely on the client side the results might be different from your own environment. maybe a serverside code causes a crash of some sort?! And if your results stay the same what could be causing my system to act this way? |
Looks like an SSR/hydration issue, may also be SvelteKit specific. Dev and build both seem to give same results.
(Btw, stuff like |
I see. thanks for the tip. |
After experimenting with all html elements, the full list of affected ones is a superset of the void elements:
|
closed via #11258 |
Describe the bug
following this issue (#10993), actions also do not work on a
svelte:element
with itsthis
set toinput
ortextarea
.Reproduction
// +page.svelte
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: