tobii icon indicating copy to clipboard operation
tobii copied to clipboard

Custom Selector JS Error

Open Racquetballer opened this issue 2 years ago • 1 comments

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

Racquetballer avatar Jun 20 '23 15:06 Racquetballer

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

midzer avatar Feb 12 '24 22:02 midzer