Skip to content

bug: Slot Attribute is lost #5215

Closed

Description

@dutscher

Prerequisites

Stencil Version

4.8.2

Current Behavior

if i set in the stencil config experimentalSlotFixes: true the

is relocated correctly but its loses the attribute [slot].

<my-comp>
<div slot="content">Hello</div>
</my-comp>

-> will render into:

<my-comp>
<div>Hello</div>
</my-comp>

Expected Behavior

<my-comp>
<div slot="content">Hello</div>
</my-comp>

-> will render into:

<my-comp>
<div slot="content">Hello</div>
</my-comp>

System Info

Node 18, Windows 11, Chrome 120

Steps to Reproduce

Create a snippet with slot attribute. After first render inspect in browser the rendered component and the slot attribute is lost.
Without the experiemental flag (the default) the slot attribute is every time there.

Code Reproduction URL

https://stackblitz.com/edit/node-uahzga?file=src%2Findex.html,src%2Fcomponents%2Fmy-comp.tsx

Additional Information

in the 4.8.2 commit i see only a default slot unit test. maybe a named slot unit test will show this issue aswell :)
4303d6a

cheers

Activity

  1. added
    holiday triage
    on Dec 25, 2023
  2. ionitron-bot commented on Dec 25, 2023

    @ionitron-bot

    Thanks for the issue! This issue has been labeled as holiday triage. With the winter holidays quickly approaching, much of the Stencil Team will soon be taking time off. During this time, issue triaging and PR review will be delayed until the team begins to return. After this period, we will work to ensure that all new issues & PRs are properly triaged.

    In the meantime, please read our 2023 Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly.

    Thank you!

  3. added
    Bug: Validated
    and removed
    holiday triage
    on Jan 2, 2024
  4. changed the title [-]bug: Slot Attribut is lost[/-] [+]bug: Slot Attribute is lost[/+] on Jan 2, 2024
  5. self-assigned this
    on Jan 2, 2024
  6. added 2 commits that reference this issue on Jan 2, 2024
    7dac2c6
    d2ab331
  7. added a commit that references this issue on Jan 12, 2024
    a2e119d
  8. tanner-reits commented on Jan 15, 2024

    @tanner-reits
    Contributor

    A fix for this has been included in today's Stencil v4.10 release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug: Validatedslot-related

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions