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
Slot CRUD does not work properly when shadow is false #2877
Labels
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
slot-related
Comments
rwaskiewicz
added
Bug: Needs Validation
Resolution: Needs Investigation
This PR or Issue should be investigated from the Stencil team
and removed
Feature: Renderer
labels
Mar 25, 2022
rwaskiewicz
added
slot-related
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
and removed
Resolution: Needs Investigation
This PR or Issue should be investigated from the Stencil team
labels
Sep 6, 2023
tanner-reits
added a commit
that referenced
this issue
Dec 6, 2023
Hides any content that is projected through to a Stencil component that does not have a destination slot. Only for `scoped` components. Fixes #2877 STENCIL-938
2 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 6, 2023
…onents (#5135) * fix(runtime): re-relocate slot if parent element's tagname changes If a slot is located in an element and that element's tag is dynamically changed (e.g. from `p` to `span`), we need to re-relocate the slot on re-render STENCIL-672: slot element loses its parent reference and disappears when its parent is rendered conditionally Fixes: #4284, #3913 * add e2e tests * code documentation * put changes behind slot fix flag * resolve new SNC * reset `hidden` state of nodes on relocate It is possible for slotted content to still be invisible in the DOM if the slot was not rendered on the first render. This commit resets the `hidden` attribute of a node on successful relocation. STENCIL-1053 * hide slot content without a home in `scoped` components Hides any content that is projected through to a Stencil component that does not have a destination slot. Only for `scoped` components. Fixes #2877 STENCIL-938 * add e2e tests for hiding content without a slot * revert karma config * PR feedback Co-authored-by: Christian Bromann <git@bromann.dev> --------- Co-authored-by: Christian Bromann <git@bromann.dev>
A fix for this issue was released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
slot-related
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Is not displayed when true
The wrong presentation flattened DOM:
Expected behavior flattened DOM
Initialize the hidden slot, pass it to the slot node when used, and display the slot inside the component with parameters that can correctly process the slot to its actual location. However, if the internal slot of the component is hidden here, the external slot node disappears and the external slot node should be moved back to its original position for hiding
When you outsource an incoming slot and receive it internally, delete the outsourced slot. The hidden property of the internal slot-fb is not removed
When shadow is true, the browser will handle it just fine
Expected behavior:
Slot increase, delete and update when shadow is false will work normally
Steps to reproduce:
Related code:
DOM nodes to use and display:
When the following statement is executed:
This is normal as shown below
When the following statement is executed:
Incoming slot nodes are deleted: ====》It should be moved back to its original position and then hidden
Other information:
The text was updated successfully, but these errors were encountered: