-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Bug Description
When VuiTable has idField defined as a callback and selection.onSelectRow prop is in use, selecting a row in such case results in a crash of VuiTable component.
For example, the following code results in the below error (see screenshot), even though all rows have corpusInfo.key field defined.
<VuiTable
idField={(item) => item.corpusInfo.key}
columns={columns}
rows={corporaStatesArr}
selection={{
bulkActions: [
{
label: "Clear selected",
onClick: (toClear) => {
console.log("Clear selected", toClear);
}
}
],
onSelectRow: (selectedRows) => {
setSelectedCorpura(selectedRows);
},
selectedRows: selectedCorpora
}}
/>Note
This issue doesn't occur in the following cases:
idFieldis a stringidFieldis a callback and rows data items have anidfield
Metadata
Metadata
Assignees
Labels
No labels