-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Using slots on svelte:element
is buggy in v.3.48.0
#7571
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
Note: This bug was introduced in version 3.48.0, it does not occur in 3.47.0: https://svelte.dev/repl/af99dfa4e9ef45f6bce713e90af2de38?version=3.47.0 |
svelte:element
is buggysvelte:element
is buggy in v.3.48.0
It seems to be the case even without slot props. I have Text component which looks roughly like this:
and it seems to remove dynamic classes when slot content is changed. |
svelte:element
is buggy in v.3.48.0svelte:element
is buggy in v.3.48.0
This is already fixed by #7531 |
Describe the bug
Setting a slot prop on the
svelte:element
tag makes it behave in a broken way.I'm not sure if the case I encountered is the only case where behaviour is buggy.
See the REPL for more info, but this is what made me find the bug:
svelte:element
tagsvelte:element
tagReproduction
https://svelte.dev/repl/af99dfa4e9ef45f6bce713e90af2de38?version=3.48.0
Logs
No response
System Info
System: OS: macOS 11.4 CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz Memory: 48.09 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 8.1.0 - /usr/local/bin/npm Browsers: Brave Browser: 101.1.38.119 Chrome: 102.0.5005.61 Edge: 101.0.1210.53 Firefox: 100.0 Safari: 14.1.1 npmPackages: svelte: ^3.47.0 => 3.47.0
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: