Skip to content

Commit

Permalink
MC-41902 fix jQuery hover (#30)
Browse files Browse the repository at this point in the history
* MC-41902: Fix jQuery hover calls

* MC-41902: Fix jQuery hover calls
  • Loading branch information
svera authored May 12, 2021
1 parent 53c0b2f commit b979ce9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ define([
$title = $element.find('.title');
$corner = $element.find('.corner');

$this.hover(function () {
$this.on('mouseenter', function () {
if (!$this.hasClass('disabled')) {
timer = setTimeout(
function () {
Expand Down Expand Up @@ -168,7 +168,9 @@ define([
$widget.options.delay
);
}
}, function () {
});

$this.on('mouseleave', function () {
$element.hide();
clearTimeout(timer);
});
Expand Down

0 comments on commit b979ce9

Please sign in to comment.