devmark / angular-slick-carousel

Angular directive for slick-carousel
http://devmark.github.io/angular-slick-carousel/
MIT License
353 stars 125 forks source link

changing images with dropdown - jumping to top of the screen #134

Closed stevenbrown-85 closed 7 years ago

stevenbrown-85 commented 7 years ago

I have a dropdown filter that is selecting images from a list which then changes the images within slick carousel which is working fine. The problem is when a selection is made from the dropdown list it then jumps to the top of the page.

I've tried passing an event from ng-change on the dropdown and using event.preventDefault(); but had no joy.

I think it could be an issue with the way that the images are changing in the carousel but i'm unsure. If anyone can point me in the right direction or could let me if it's a known issue it would be much appreciated.

I can provide code if needed just let me know