[TSVB] Fixes cursor type for topN charts with drilldowns (#115333)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2021-10-21 09:02:14 +03:00 committed by GitHub
parent cff704c411
commit 86345e2746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,13 +120,15 @@ export class TopN extends Component {
maxWidth: this.state.labelMaxWidth,
},
},
onClick: {
onClickStyle: {
row: {
cursor: 'pointer',
},
},
},
this.props
{
onClickStyle: typeof this.props.onClick === 'function',
}
);
return (
<tr key={key} onClick={this.handleClick({ lastValue, ...item })} style={styles.row}>
@ -180,7 +182,6 @@ export class TopN extends Component {
TopN.defaultProps = {
tickFormatter: (n) => n,
onClick: (i) => i,
direction: 'desc',
};