Skip to content

Commit

Permalink
Fix failing tests on charts after upgrading react-vis 1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Jul 6, 2018
1 parent 0055aed commit 3b47859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ exports[`EuiXYChart renders an empty chart 1`] = `
>
<svg
class="euiIcon euiIcon--xxLarge euiIcon--subdued"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 14v-4h1v4h5V5h1v9a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-2h1v2h6zm4.853-10.146l-2.999 3a1.5 1.5 0 0 1-2.538 1.568l-2.714.904L4 9.527a1.5 1.5 0 1 1-.316-.948L7 7.473a1.5 1.5 0 0 1 2.146-1.327l3-3a1.5 1.5 0 1 1 .707.707z"
fill="#3F3F3F"
fill-rule="evenodd"
/>
</svg>
Expand Down
4 changes: 2 additions & 2 deletions src/components/xy_chart/xy_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class XYExtendedPlot extends XYPlot {
}
const seriesChildren = getSeriesChildren(children);
seriesChildren.forEach((child, index) => {
const component = this.refs[`series${index}`];
const component = this[`series${index}`];
if (component && component.onParentMouseLeave) {
component.onParentMouseLeave(event);
}
Expand All @@ -56,7 +56,7 @@ class XYExtendedPlot extends XYPlot {
}
const seriesChildren = getSeriesChildren(children);
seriesChildren.forEach((child, index) => {
const component = this.refs[`series${index}`];
const component = this[`series${index}`];
if (component && component.onParentMouseUp) {
component.onParentMouseUp(event);
}
Expand Down

0 comments on commit 3b47859

Please sign in to comment.