Skip to content

Unable to pass data-* attributes to Text component in 3.9.0 Canary 18 #543

@egucciar

Description

@egucciar

Tried emailing you back on hello@reshaped.com, but it got kicked back to me due to The response from the remote server was: 554 5.7.1 : Relay access denied , i wanted to share this issue blocking me from upgrading to the latest:

Type '{ "data-cy": string | undefined; }' is not assignable to type 'Attributes<As> | undefined'.
  Type '{ "data-cy": string | undefined; }' is not assignable to type '(As extends keyof IntrinsicElements ? IntrinsicElements[As] : HTMLAttributes<HTMLElement>) & Record<...> & { ...; }'.
    Type '{ "data-cy": string | undefined; }' is not assignable to type 'As extends keyof IntrinsicElements ? IntrinsicElements[As] : HTMLAttributes<HTMLElement>'.ts(2322)
Text.types.d.ts(28, 5): The expected type comes from property 'attributes' which is declared here on type 'IntrinsicAttributes & Props<As>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Awaiting / Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions