mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Merge pull request #153 from tiraeth/fix-hide-hover
Fixed hideHover=auto for line/area chart
This commit is contained in:
commit
1ecd8f95c9
@ -76,7 +76,7 @@ class Morris.Line extends Morris.Grid
|
|||||||
# @private
|
# @private
|
||||||
onHoverOut: =>
|
onHoverOut: =>
|
||||||
if @options.hideHover is 'auto'
|
if @options.hideHover is 'auto'
|
||||||
@displayHoverForIndex(null)
|
@displayHoverForRow(null)
|
||||||
|
|
||||||
# display a hover popup over the given row
|
# display a hover popup over the given row
|
||||||
#
|
#
|
||||||
|
@ -642,7 +642,7 @@
|
|||||||
|
|
||||||
Line.prototype.onHoverOut = function() {
|
Line.prototype.onHoverOut = function() {
|
||||||
if (this.options.hideHover === 'auto') {
|
if (this.options.hideHover === 'auto') {
|
||||||
return this.displayHoverForIndex(null);
|
return this.displayHoverForRow(null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
morris.min.js
vendored
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user