Skip to content

bug: autofocus prop/attr is defined on other HTML attribute types instead of HTMLAttributes #5726

Closed
@jcfranco

Description

@jcfranco

Prerequisites

Stencil Version

4.17.2

Current Behavior

Setting the global autofocus attribute/prop will cause TypeScript to complain about missing definition.

The following codepen shows that custom elements inherit it from HTMLElement.

Expected Behavior

For autofocus prop/attr to be included in the base Stencil HTML attr/prop types.

System Info

No response

Steps to Reproduce

Follow provided steps in repro case.

Code Reproduction URL

https://github.com/jcfranco/stencil-autofocus-missing-on-base-html-attr-type

Additional Information

This could apply to other global attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions