Skip to content

bug: A slot gets the attribute hidden when it shouldn't #4523

Closed

Description

@asik

Prerequisites

Stencil Version

4.0.0 (also seen on 3.4.0)

Current Behavior

StencilJS is adding the attribute hidden to a slot that it shouldn't. I wrote a repro accessible at the url below. There's quite a bit going on, but if I tried to simplify it further, the problem went away, so this is as minimal as I could make it. Basically I have three components:

text-input
  input-base
    input-group

image

For some reason, StencilJS adds the hidden attribute to the "message" slot in the input-base component.
I noticed that if I use input-base directly, it works as expected. It also works as expected if I add a wrapper div in input-base.

Expected Behavior

The slot should not be hidden.

System Info

No response

Steps to Reproduce

Clone the repo, yarn && yarn start.

Code Reproduction URL

https://github.com/asik/stencil-repro

Additional Information

No response

Activity

  1. self-assigned this
    on Jun 28, 2023
  2. rwaskiewicz commented on Jun 28, 2023

    @rwaskiewicz
    Member

    Thanks @asik !

    I've confirmed that something isn't quite right here, and am going to label this to get it into the team's backlog.

  3. added
    Bug: Validated
    on Jun 28, 2023
  4. removed their assignment
    on Jun 28, 2023
  5. rwaskiewicz commented on Oct 30, 2023

    @rwaskiewicz
    Member

    The fix for this issue has been released as a part of today's Stencil v4.7.0 release. Should the issue reappear, please feel free to open a new ticket. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: Validatedslot-related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions