S
S
Sergei Gurdjiyan2016-12-10 11:03:11
JavaScript
Sergei Gurdjiyan, 2016-12-10 11:03:11

How to fix or replace mouseenter and mouseleave js in mozilla?

On the page your-webmasters.com/demo/velo/index.php you can see a dropdown basket when hovering over the button.
For this, I used the construction

// Cart drop down
  $(".m-cart__drop").mouseenter(function () {
    $(".m-cart__dropdown").slideDown();
  });
  $(".m-cart").mouseleave(function () {
    $(".m-cart__dropdown").slideUp();
  });
  $(".m-cart__drop").on("click", function () {
    return false;
  });

Everything works as it should, but in Mozilla Firefox, when you hover over the delete cross, mouseleave is triggered.
How can this be fixed and why is this happening?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question