Open aniederer-chatham opened 10 months ago
Appears to not be fixed by #5143
I think that makes sense based on what I understand about the child-reconciliation issues that #5143 aims to address, I wouldn't actually expect that it would fix this issue since it's not directly addressing slot relocation logic and whatnot
Prerequisites
Stencil Version
4.8.1
Current Behavior
After performing the repro steps below, the app displays:
Body: Header
Expected Behavior
After performing the repro steps below, the app displays:
Body: Body
System Info
Steps to Reproduce
Create this component:
Use it like so:
Build the app. It will display this:
Click the button. It will now display this:
Code Reproduction URL
https://github.com/aniederer-chatham/stencil-slot-bug-poc
Additional Information
<div>Body: <slot /></div>
to<section>Body: <slot /></section>
. Adding a class or attribute to the element is not a sufficient difference.