glide icon indicating copy to clipboard operation
glide copied to clipboard

document.querySelector('.glide').glide is undefined

Open davidenco opened this issue 3 years ago • 1 comments

I want to make changes to Glide dynamically and would usually use document.querySelector('.swiper').swiper with Swiper, but when I try to do document.querySelector('.glide').glide with Glide, it says it's undefined.

I can do "var glide = Glide()", but I need access where Glide has not been assigned in that way.

What am I doing wrong?

davidenco avatar Jan 11 '23 15:01 davidenco

Glide is probably not registered on global document and I think that's OK. You cannot use document.querySelector like that, Glide has its own query selector as first parameter when using new Glide('.glide') for example.

Amarok24 avatar Sep 16 '24 13:09 Amarok24