Skip to content

Commit b979ce9

Browse files
authored
MC-41902 fix jQuery hover (#30)
* MC-41902: Fix jQuery hover calls * MC-41902: Fix jQuery hover calls
1 parent 53c0b2f commit b979ce9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Swatches/view/base/web/js/swatch-renderer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ define([
106106
$title = $element.find('.title');
107107
$corner = $element.find('.corner');
108108

109-
$this.hover(function () {
109+
$this.on('mouseenter', function () {
110110
if (!$this.hasClass('disabled')) {
111111
timer = setTimeout(
112112
function () {
@@ -168,7 +168,9 @@ define([
168168
$widget.options.delay
169169
);
170170
}
171-
}, function () {
171+
});
172+
173+
$this.on('mouseleave', function () {
172174
$element.hide();
173175
clearTimeout(timer);
174176
});

0 commit comments

Comments
 (0)