bug: slot content gets hidden after switching back and forth between <slot> and null. #4880
Closed
3 tasks done
Labels
ionitron: needs reproduction
This PR or Issue does not have a reproduction case URL
ionitron: stale issue
This issue has not seen any activity for a long period of time
Prerequisites
Stencil Version
3.1.0 (also tried 4.2 with experimental flag)
Current Behavior
When implementing conditional rendering on our component, content inside “” attribute works accordingly. However, when we switch back and forth between, for example a “
We saw that there is a large PR open for all kinds of slot additions and fixes (PR-LINK), however, can this issue be resolved separately? and if not, how can we, for now, apply a fix for it?
Our component has a render method like this:
Expected Behavior
Content slot un-hides when rendering slot content again.
System Info
No response
Steps to Reproduce
Create basic component with a content slot. Conditionally render that slot or render something else (such as a button, or even null). Then rerender the original state with the slot content and see that the slot is hidden with the 'hidden' global attribute.
Code Reproduction URL
private repo
Additional Information
No response
The text was updated successfully, but these errors were encountered: