I am building a simple form inside an Owl Carousel but I can't get it to work on their version 2.
The problem is when the user click inside the input type on the second version the console log gives an error :Uncaught TypeError: Cannot read property 'name' of undefined.
on the first version everything works fine. Here is a fiddle for v1 I was just wondering if somebody can take a look, I tried using mouseDrag:false but it doesn't do the trick.
And here is the link for version 2 and the code goes like this:
$(document).ready(function () {
var owl = $('.owl-carousel');
owl.owlCarousel({
items:1,
mouseDrag:false
});
// Go to the next item
$('.customNextBtn').click(function () {
owl.trigger('next.owl.carousel');
})
});