Skip to content

html.select is missing typescript types for value/defaultValue #335

Description

@MoOx

Describe the issue

This code triggers a typescript error, while it's working properly. I think value & defaultValue are missing.

This code triggers the error:

      <html.select value="" />
error TS2322: Type '{ value: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Readonly<Omit<Readonly<{ 'aria-activedescendant'?: string | null | undefined; 'aria-atomic'?: boolean | null | undefined; 'aria-autocomplete'?: "none" | ... 4 more ... | undefined; ... 98 more ...; tabIndex?: 0 | ... 2 more ... | undefined; }>, "multiple" | ... 7 more ... | "onSelect"> & {...'.
  Property 'value' does not exist on type 'IntrinsicAttributes & Omit<Readonly<Omit<Readonly<{ 'aria-activedescendant'?: string | null | undefined; 'aria-atomic'?: boolean | null | undefined; 'aria-autocomplete'?: "none" | ... 4 more ... | undefined; ... 98 more ...; tabIndex?: 0 | ... 2 more ... | undefined; }>, "multiple" | ... 7 more ... | "onSelect"> & {...'.

53         <html.select value="" />

Expected behavior

Typescript should trigger an error here for this known prop (value or defaultValue)

Steps to reproduce

Just type <html.select value="" />

RSD 0.0.39

Test case

No response

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions