Skip to content

[EuiComment] Type definition does not allow id #8090

Closed

Description

@jpcarey

Describe the bug
EuiComment's TS type does not allow id to be added to the element.

Type '{ children: Element; id: string; "data-test-subj": string; actions: {} | Iterable<ReactNode> | ReactNode[]; username: string; event: string | undefined; eventColor: "warning" | "subdued"; timelineAvatar: Element; timestamp: Element; }' is not assignable to type 'IntrinsicAttributes & EuiCommentProps & { children?: ReactNode; }'.
  Property 'id' does not exist on type 'IntrinsicAttributes & EuiCommentProps & { children?: ReactNode; }'.ts(2322)

Impact and severity
Workaround: add // @ts-ignore.

Environment and versions

  • EUI version: 93.4.0
  • React version: 17.0.2

Activity

  1. added
    ⚠️ needs validation
    on Oct 18, 2024
  2. removed
    ⚠️ needs validation
    on Oct 18, 2024
  3. self-assigned this
    on Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions