Skip to content

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

@asik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencilslot-related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions