Skip to content

Commit

Permalink
[TSVB] Fixes cursor type for topN charts with drilldowns (#115333)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
stratoula and kibanamachine authored Oct 21, 2021
1 parent cff704c commit 86345e2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down Expand Up @@ -180,7 +182,6 @@ export class TopN extends Component {

TopN.defaultProps = {
tickFormatter: (n) => n,
onClick: (i) => i,
direction: 'desc',
};

Expand Down

0 comments on commit 86345e2

Please sign in to comment.