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

Uncaught [object HTMLDivElement] is not a target #113

Open
tabaktoni opened this issue Feb 17, 2019 · 1 comment
Open

Uncaught [object HTMLDivElement] is not a target #113

tabaktoni opened this issue Feb 17, 2019 · 1 comment

Comments

@tabaktoni
Copy link

tabaktoni commented Feb 17, 2019

$('#carouselExampleIndicators').bind('slide.bs.carousel', function (e) {
		console.log(e.relatedTarget);
	    BackgroundCheck.refresh(e.relatedTarget);
	});

I'm getting next image that will be shown after slider complete sliding with e.relatedTardet.
It is Target element injected into event from bootstrap carousel.
But i get all the time [object HTMLDivElement] is not a target, and it is target.

Target is not img as <IMG ...> it is <DIV ...> with backgeround from bootstrap carousel example.

@thomasPierreATECNA
Copy link

You can do this :

BackgroundCheck.set('targets', 'e.relatedTarget');
BackgroundCheck.refresh();

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