mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[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:
parent
cff704c411
commit
86345e2746
1 changed files with 4 additions and 3 deletions
|
@ -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',
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue