Skip to content

Commit 5124e45

Browse files
authored
return empty array for no hover points
1 parent 0919988 commit 5124e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ function createHoverText(hoverData, opts) {
11261126
container.selectAll('g.hovertext').remove();
11271127
var groupedHoverData = hoverData.filter(function(data) {return data.hoverinfo !== 'none';});
11281128
// Return early if nothing is hovered on
1129-
if(groupedHoverData.length === 0) return;
1129+
if(groupedHoverData.length === 0) return [];
11301130

11311131
// mock legend
11321132
var hoverlabel = fullLayout.hoverlabel;

0 commit comments

Comments
 (0)