Skip to content

DataTableColumn id for use in duplicate keys #1684

Open
@niondir

Description

@niondir

I sometimes face an issue with duplicated keys when two columns reference the same property.

const cellId = `${this.props.id}-${DATA_TABLE_CELL}-${column.props.property}`;

They are the same then, but rendering the same property in two different ways is a usecase sometimes.

As a possible fix we could change the cellId to:

const cellId = `${this.props.id}-${DATA_TABLE_CELL}-${column.props.property}-${column.props.id}`;

And allow to pass an id to a column component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions