We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hey there 👋🏻
It's been a while since I didn't give a try to Svelte 5 (last version I used was next.172) so my apologize in advance if this is an intended behavior.
When using bind:this on an HTML element and using an action on it causes the binded element to be undefined. Removing the action does solve the issue.
Thanks!
Minimal REPL
No response
System: OS: macOS 14.4 CPU: (12) arm64 Apple M2 Max Memory: 10.97 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm bun: 1.1.13 - ~/.bun/bin/bun Browsers: Chrome: 127.0.6533.72 Firefox Nightly: 128.0a1 Safari: 17.4
blocking an upgrade
The text was updated successfully, but these errors were encountered:
It eventually becomes defined, but this is definitely a bug. Adding an action shouldn't change the behavior.
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA32RTWrDMBCFrzKIgB1wm71rG3KAnKDuwpXGrUB_SOOAEbp75Z862bQLy5rHe58eUmSjVBhY_R6ZGTSyml2dYxWj2S1DuKMizHOwk-eL0gTupaOuNz1J7awniGDNzU6GIMHorYZiixVvi2n5FBJwa2iQBj20cAo0EJbnw7ADyvIMbQdxlSknglX4quxXWeyOonqAtnhaf3lzwnFE_h9jd_zFWJssAYIwaKfwyklak_uWxgp8xnqkyZvfqSeBgbyd89ExVZuYNnJem8vjzkwj5B24GkJoe6bnl6NJz-BTGlHTtwxtPOQEU8D6uU_XXDKjg_wq2go5ShSsJj9h-kg_iSpZmdABAAA=
edit: non-runes version https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA21Q0WrDMAz8FWEGTaBb370k0A_YFyx7yGJ1M9iWsZVCMP732U2X9WEPMtzpTicriYs2GIV8T8JNFoUUZ-_FUfDqK4hXNIwFR1rCXJkuzkF7HkY3sraeAkMCcm-0OIYMl0AWDpvt8FpFtQwyzOR40g5DZQt39zRNC_0A6SblIopk8MXQV7Mb2tuc3N6NTxL-l23t2mOIk_UGzzNrctBD40jhY1BAXoL7RSMrjBxoLcukfNzIvMWWtzv9fdp1Sl9hNlOM_Sjs-rznjwI-tVOSv3Xs005nWCLKx32G7lRmDOWqlpS-aFRCclgwf-QfiBeXPJABAAA=
Sorry, something went wrong.
fix: always synchronously call bind:this
bind:this
484d8a8
fixes #12673 #12591 wrongfully applied the "wrap in effect if an action on this element" logic for `bind:this`
01e7845
dummdidumm
Successfully merging a pull request may close this issue.
Describe the bug
Hey there 👋🏻
It's been a while since I didn't give a try to Svelte 5 (last version I used was next.172) so my apologize in advance if this is an intended behavior.
When using bind:this on an HTML element and using an action on it causes the binded element to be undefined.
Removing the action does solve the issue.
Thanks!
Reproduction
Minimal REPL
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: