Table - onRowDoubleClick - event.value & arrays

I use a column View to parse arrays which works but when I tried to pass event.value from a onRowDoubleClick event, the value is empty instead of what is shown in the table. Is this a bug or expected behavior?

Instead of event.value, you can try self.props.data[self.props.selection.selectedRow] instead.

IIRC, none of the table's events and properties that reflect parts of props.data are able to deliver nested data. Consider making a feature request. Or using the event.row or event.rowIndex to look up the raw data yourself.

2 Likes

I ended up using self.props.data[event.row] to achieve what I wanted. Thanks!

Thanks for the suggestion, this works too. event.row was cleaner in this case.

2 Likes