Open nwhittaker opened 8 months ago
@nwhittaker Thanks for reporting! I've confirmed there's an issue here, so I'll get this labeled for us to dig into. We'll report back here with questions and updates!
Is there any expected fix for this? It has been a while since it was reported. I'm facing the same issue.
Any updates? Also faced this issue
Prerequisites
Stencil Version
4.12.3
Current Behavior
Given a non-shadow component that renders a slot, any children with a
hidden
attribute lose thehidden
attribute when initially rendered and become visible.Expected Behavior
Given a non-shadow component that renders a slot, any children with a
hidden
attribute maintain thehidden
attribute when initially rendered and remain hidden.System Info
Steps to Reproduce
npm i
npm start
Code Reproduction URL
https://github.com/nwhittaker/hidden-children
Additional Information
Possibly inversely related to https://github.com/ionic-team/stencil/issues/4523.
Workarounds include enabling the shadow DOM in the component or wrapping the children in an element: