Skip to content

Commit

Permalink
[TSVB] Fixes cursor type for topN charts with drilldowns (elastic#115333
Browse files Browse the repository at this point in the history
) (elastic#115889)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Stratoula Kalafateli <[email protected]>
  • Loading branch information
kibanamachine and stratoula authored Oct 21, 2021
1 parent 50d97ca commit 656964b
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 656964b

Please sign in to comment.