stencil icon indicating copy to clipboard operation
stencil copied to clipboard

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

Open venkatesh-nagineni opened this issue 10 months ago • 1 comments

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

venkatesh-nagineni avatar Apr 03 '24 10:04 venkatesh-nagineni

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 avatar Apr 03 '24 12:04 rwaskiewicz