mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +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)
|
||||
if index?
|
||||
@hover.update(@hoverContentForRow(index)...)
|
||||
else
|
||||
@hover.hide()
|
||||
|
||||
# hover out event handler
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue