-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
3128: Test to show nested slots fails #3136
Conversation
ccf50cd
to
0c397ae
Compare
I now have a change that allows the test to pass. I'm not confident that I have made the right changes with regards to |
I have just tested your PR with my test project and slots now do indeed work as expected. Here is a link to my test repo: https://github.com/pbastowski/svelte-nested-slot-inside-web-component-fix-test That is:
Without this PR the slot within Based on my limited testing, it would appear that this PR has indeed fixed the broken slot problem. |
Update: this PR breaks sveltestrapI added the sveltestrap component library to the project and tried to use it's components in the project. However, it doesn't work with this PR, but works with the latest stable version of Svelte. How does it break? Well, the template content starting with and below a sveltestrap Button does not render and the dev console displays this error:
I have added branch |
Sounds like we just need to ensure the argument to
(ugly hacky test based on https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType but it gets the idea across). |
I've updated the most recent version of Svelte with the changes per 0c397ae (sans the /examples/ changes as those file don't seem to be present any longer) here: https://github.com/campbeln/svelte Unfortunately... these changes don't seem to fix the issues any longer. |
Fix for current build is contained in master...campbeln:master and an example of working code is included in #4402. NOTE: Not certain if change to line 23 of src/compiler/compile/render_dom/index.ts is necessary. Also not certain if this also breaks sveltestrap as noted above - #3136 (comment) . |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks for sharing this. I'm going to go ahead and close it since it can't be merged, but it should show up on the referenced ticket so that it can be leveraged if someone has a fix for the issue |
To go along with my investigations in #3128, I have added a custom element test for a nested custom element that shows the failure I am receiving. The slot is never assigned to the nested element.
Note: Apologies for the console event change, it was the only way I could get test logs to work.