You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably connected to #7428. I created a detailed REPL showing the issue and some findings, see below.
I am using a UI library based on web components. I wrap the web components into Svelte components so that I can stick to the "programming model" of Svelte in the application.
There is also a web component for tables, which includes two 1:n slots: columns for table columns and the default slot for table rows. When wrapping the respective web components (table, table column, ...) into Svelte components, the components for the table columns are rendered into the wrong slot.
I tried the workarounds from #7428 and #1689. The one using {...$$restProps} does not work, maybe because the columns slot is 1:n. And wrapping the components into <div> does not work because that breaks the rendering of the web components. See the linked REPL below for details.
The only way I could make this work so far was by not wrapping the web components for table and table columns into Svelte components but using the web components directly. That works but is not really what I want to do.
Is there any other workaround that lets me use the wrapped components?
The reproduction no longer works sadly. Closing under the assumption that this was fixed with the overhaul of Svelte web components in Svelte 4. If not, please open a new issue with an updated reproduction. Thank you.
Describe the bug
This is probably connected to #7428. I created a detailed REPL showing the issue and some findings, see below.
I am using a UI library based on web components. I wrap the web components into Svelte components so that I can stick to the "programming model" of Svelte in the application.
There is also a web component for tables, which includes two 1:n slots:
columns
for table columns and the default slot for table rows. When wrapping the respective web components (table, table column, ...) into Svelte components, the components for the table columns are rendered into the wrong slot.I tried the workarounds from #7428 and #1689. The one using
{...$$restProps}
does not work, maybe because thecolumns
slot is 1:n. And wrapping the components into<div>
does not work because that breaks the rendering of the web components. See the linked REPL below for details.The only way I could make this work so far was by not wrapping the web components for table and table columns into Svelte components but using the web components directly. That works but is not really what I want to do.
Is there any other workaround that lets me use the wrapped components?
Reproduction
Svelte REPL:
https://svelte.dev/repl/1e420a118cac4b53b52cba49a2b29f34?version=3.48.0
It includes:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: