davetayls/jquery.kinetic

Dropdown listing issue

Closed this issue · 2 comments

Dropdown listing in the page will not be able to be clicked.

Upon clicking the dropdown, it will closed immediately.

Is there any fix for this?

You would need to use filterTarget to stop kinetic activating when clicking on the dropdown. see example in the docs

Sorry, just tried with filterTarget and the dropdown will not appear.

$('.table-responsive').kinetic({
filterTarget: function(target, e){
if (!/down|up/.test(e.type)){
return !(/select|area|a|input/i.test(target.tagName));
}
}
});