HubSpot/drop

Multiple Drop instance

Opened this issue · 0 comments

Hi, i have multiple drop instance in my page:

$('.drop-target').each(function(index){
new Drop({
target: $('.drop-target')[index],
content: $('.drop-content-inner')[index],
position: 'top center',
openOn: 'click'
});
});

The last element is not instantiated, how do I create multiple dropdown on the same page?

schermata 2017-03-27 alle 13 32 50
schermata 2017-03-27 alle 13 32 58