You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2024. It is now read-only.
Bug Report
Description
refCallback is not returning the ref of the table row.
It may be because the refCallback prop is not sent while creating rows here:
terra-core/packages/terra-table/src/Table.jsx
Line 255 in e095f9e
Steps to Reproduce
Add refCallback prop while creating rows and provide a callback function which is not getting triggered even after the component is mounted.
Additional Context / Sample Code
const createRow = (tableType, rowData, index, selectedRowIndex, handleRowDisclose, refCallBackFunc, intl) => ({
key:
${tableType}AlertRow-${index}
,cells: createCellsForRow(tableType, rowData,
${tableType}AlertRow-${index}
, intl),isStriped: index % 2 !== 0,
refCallback: ref => refCallBackFunc(ref, index),
discloseAction: {
metaData: { key: index, content: rowData },
onDisclose: handleRowDisclose,
isDisclosed: selectedRowIndex === index,
discloseLabel:
${tableType}AlertRow-${index}-disclose-label
,discloseCellIndex: index,
},
});
Expected Behavior
ref should be returned.
Possible Solution
Environment
@ Mentions
MR, Supreeth
The text was updated successfully, but these errors were encountered: