Skip to content

[EuiComment] Type definition does not allow id #8090

@jpcarey

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

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