-
-
Notifications
You must be signed in to change notification settings - Fork 448
Closed
Labels
Description
Hi. I have an onclick event fire from one of my tabs, but on fire, it somehow reset the tab index to go back to the first tab. Say i have 2 tabs, and i'm on the second page of the tab 2, which has Griddle table, when i click on something in one of the griddle's table column ( i have an onclick on an item there ) it triggers the react tab to go back to the first tab vs staying put. I need it to stay put on tab 2 vs somehow route back to tab 1. Any ideas?
const LinkComponent = ({ data, rowData }) => {
let result = <span></span>;
if (data) {
result = (
<div>
<span>{rowData.user}</span>
<span onClick={this.props.onClickUserDetails.bind(this, rowData.user)}>
<i className='fa fa-info-circle fa-lg'></i>
</span>
</div>
);
}
return result;
};
const columnMeta = [
{
columnName: 'user',
order: 1,
locked: false,
visible: true,
customComponent: LinkComponent,
displayName: 'User ID',
},