W
W
WebforSelf2020-12-23 11:23:43
JavaScript
WebforSelf, 2020-12-23 11:23:43

Error opening fancybox window?

There is a site

When opening a modal window, opening any product and some clicks inside it (for example, drop-down tabs), this kind of error occurs and is added with each click.

5fe2fe46441f4386219716.png

jquery.fancybox.js:4594 Uncaught TypeError: instance.current.$content.find(...).addBack is not a

function

// Check where is clicked
    if ($target.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) {
      where = "Outside";
    } else if ($target.is(".fancybox-slide")) {
      where = "Slide";
    } else if (
      instance.current.$content &&
      instance.current.$content
      .find($target)
      .addBack()
      .filter($target).length
    ) {
      where = "Content";
    } else {
      return;
    }


more specifically on .addBack()

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