From 2e2aaa8a5252896110b4aba74320ff58892626ed Mon Sep 17 00:00:00 2001 From: Elad Bezalel Date: Fri, 6 Nov 2015 19:29:17 +0200 Subject: [PATCH] fix(ripple): moved mouseleave listener to a separated declaration This caused tooltip to never get hidden --- src/core/services/ripple/ripple.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/services/ripple/ripple.js b/src/core/services/ripple/ripple.js index 17d40f9efe2..e35dd3bac17 100644 --- a/src/core/services/ripple/ripple.js +++ b/src/core/services/ripple/ripple.js @@ -165,7 +165,8 @@ InkRippleCtrl.prototype._parseColor = function parseColor (color, multiplier) { */ InkRippleCtrl.prototype.bindEvents = function () { this.$element.on('mousedown', angular.bind(this, this.handleMousedown)); - this.$element.on('mouseup touchend mouseleave', angular.bind(this, this.handleMouseup)); + this.$element.on('mouseup touchend', angular.bind(this, this.handleMouseup)); + this.$element.on('mouseleave', angular.bind(this, this.handleMouseup)); this.$element.on('touchmove', angular.bind(this, this.handleTouchmove)); };