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

Custom Selector JS Error #116

Open
Racquetballer opened this issue Jun 20, 2023 · 1 comment
Open

Custom Selector JS Error #116

Racquetballer opened this issue Jun 20, 2023 · 1 comment

Comments

@Racquetballer
Copy link

Racquetballer commented Jun 20, 2023

Midzer suggested that I post this possible bug when using a custom selector.

I'm using a custom selector and am running into an issue. I'm getting my images via an ajax call so I'm calling the reset method which appears to work.

const tobii = new Tobii({ selector: '.tobii-lightbox', autoplayVideo: false, zoom: true }); tobii.reset();

Each of the 9 images below has this tobii-lightbox class but the first one does not show the zoom image. When I try to click on any of the other images I get a js error:

image

Do you happen to know why it's erroring out? Is it because I'm using a custom selector? I'm using bootstrap so I cannot use the lightbox class.

I do see the injected dialog at the end of my body tag.

image

@midzer
Copy link
Owner

midzer commented Feb 12, 2024

@Racquetballer Can you provide a minimal code example of this issue?

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

2 participants