mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
Merge pull request #549 from JelteF/empty-bar-hover-fix
Fix hover error when hovering over an empty bar chart
This commit is contained in:
commit
4ccdd7694d
1 changed files with 4 additions and 1 deletions
|
@ -238,7 +238,10 @@ class Morris.Bar extends Morris.Grid
|
|||
# @private
|
||||
onHoverMove: (x, y) =>
|
||||
index = @hitTest(x, y)
|
||||
@hover.update(@hoverContentForRow(index)...)
|
||||
if index?
|
||||
@hover.update(@hoverContentForRow(index)...)
|
||||
else
|
||||
@hover.hide()
|
||||
|
||||
# hover out event handler
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue