background-check icon indicating copy to clipboard operation
background-check copied to clipboard

Uncaught [object HTMLDivElement] is not a target

Open tabaktoni opened this issue 6 years ago • 1 comments

$('#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.

tabaktoni avatar Feb 17 '19 18:02 tabaktoni

You can do this :

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

thomasPierreATECNA avatar Jun 03 '21 15:06 thomasPierreATECNA