Skip to content
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

bug: Attr missing from docs where prop define it as global type like HTMLElement #5618

Open
3 tasks done
venkatesh-nagineni opened this issue Apr 3, 2024 · 1 comment
Open
3 tasks done
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil

Comments

@venkatesh-nagineni
Copy link

Prerequisites

Stencil Version

4.5.0

Current Behavior

When i have prop defined with global type then i don't see attr present in custom-docs

  @Prop() testElem: HTMLElement;

Screenshot 2024-04-03 at 12 42 08

Expected Behavior

expecting to present test-elem in attr section in custom docs inside prop

System Info

No response

Steps to Reproduce

have a look at sandbox link to reproduce https://codesandbox.io/p/devbox/stencil-web-component-forked-wnqp67?file=%2Fsrc%2Fcomponents%2Fmy-component%2Fmy-component.tsx%3A31%2C1-32%2C1

Code Reproduction URL

https://codesandbox.io/p/devbox/stencil-web-component-forked-wnqp67?file=%2Fsrc%2Fcomponents%2Fmy-component%2Fmy-component.tsx%3A31%2C1-32%2C1

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Apr 3, 2024
@rwaskiewicz rwaskiewicz self-assigned this Apr 3, 2024
@rwaskiewicz
Copy link
Member

Thanks!

I was able to verify that this is an issue with how Stencil records attribute types during compilation, resulting in attr being set to undefined in earlier in the compiler (and not being written to docs-json output as a result). I'm going to label this to be ingested into our backlog - Thanks again!

@rwaskiewicz rwaskiewicz added Bug: Validated This PR or Issue is verified to be a bug within Stencil and removed triage labels Apr 3, 2024
@rwaskiewicz rwaskiewicz removed their assignment Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil
Projects
None yet
Development

No branches or pull requests

2 participants