Skip to content

Commit 3fe141a

Browse files
fix(legend): use mouseenter/leave for consistent event firing
1 parent 669da2a commit 3fe141a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/legend.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class LegendComponent extends React.Component<ReactiveChartProps> {
8989
const legendItemProps = {
9090
key: index,
9191
className: 'euiChartLegendList__item',
92-
onMouseOver: this.onLegendItemMouseover(index),
93-
onMouseOut: this.onLegendItemMouseout,
92+
onMouseEnter: this.onLegendItemMouseover(index),
93+
onMouseLeave: this.onLegendItemMouseout,
9494
};
9595

9696
return (

0 commit comments

Comments
 (0)