Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: item.find is not a function #19

Open
nataliakielbicka opened this issue Oct 1, 2016 · 7 comments
Open

TypeError: item.find is not a function #19

nataliakielbicka opened this issue Oct 1, 2016 · 7 comments

Comments

@nataliakielbicka
Copy link

Hello :)
I'd like to use this plugin in wordpress site, but I've got such error:
TypeError: item.find is not a function
return isortopeCellFilter(item.find('.col0'));
on line 188 probably.

Can you provide me any working solution to this problem?
I've got jquery and isotope libraries included.

@KurtPreston
Copy link
Owner

Curious. A few questions:

  1. What version of jQuery are you using? (You can run $.fn.jquery to find out)
  2. What browser?
  3. Does the demo work for you?

@peedikuubik
Copy link

peedikuubik commented Apr 6, 2017

Hi,

I've had the same problem whenever I've tried to implement Isortope. Same in all browsers, jQuery v1.12.4, Wordpress. The demo works for me.

IE screenshot: https://goo.gl/fPZe2e

Chrome's console :
VM1811:3 Uncaught TypeError: item.find is not a function
at eval (eval at Isortope.init (isortope.js:188), :3:32)
at e.i.updateSortData (isotope.pkgd.min.js:11)
at e.l._updateItemsSortData (isotope.pkgd.min.js:11)
at e.l._itemize (isotope.pkgd.min.js:11)
at e.m.reloadItems (isotope.pkgd.min.js:11)
at e.l.reloadItems (isotope.pkgd.min.js:11)
at e.m._create (isotope.pkgd.min.js:11)
at e.l._create (isotope.pkgd.min.js:11)
at e.s (isotope.pkgd.min.js:11)
at new e (isotope.pkgd.min.js:11)

@wisq
Copy link

wisq commented Jul 16, 2017

Same issue here with both jQuery 1.12.4 and 3.2.1. I managed to solve it by changing item.find to $(item).find, but now I'm having other issues re: all my table rows overlapping.

What version of Isotope does the demo site use?

@KurtPreston
Copy link
Owner

Demo's currently running Isotope 1.5.26

@shiflonium
Copy link

Same issue as @wisq I changed item to $(item) and now all my rows overlap

@KurtPreston
Copy link
Owner

@shiflonium If you have a link to an example, I could take a look at it.

@VladyslavKvaskov
Copy link
Contributor

VladyslavKvaskov commented Mar 16, 2020

I had the same issue. Just make sure that jquery is executed first and
isotope.pkgd.min.js is executed after that and then the isortope is executed. Exactly in that order.
It will be best if you put all of those libraries in one file and in exactly that order. Then it will work 100%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@wisq @KurtPreston @shiflonium @nataliakielbicka @peedikuubik @VladyslavKvaskov and others