jquery-dropdown icon indicating copy to clipboard operation
jquery-dropdown copied to clipboard

Support for Chosen or any other custom element

Open Alexwijn opened this issue 11 years ago • 2 comments

I'm using Chosen inside your dropdown element and because of that I need to adjust the script to avoid that the dropdown box is closing when I click it. This is because chosen is an "A" element.

I add the following: if (targetGroup.is('.chosen-container')) { return; }

In the following if-statement: if (targetGroup && targetGroup.is('.dropdown'))

Any change you could add support things like this? For example have a config variable where you can specify specific elements that will not close it.

Thanks.

Alexwijn avatar Mar 05 '15 13:03 Alexwijn

Makes sense. I'm open to a PR because I probably won't get to it right away :)

claviska avatar Mar 05 '15 19:03 claviska

I just updated my copy for my purposes, but I wanted the opposite -- to close the drop down when clicking an INPUT (button) element.

rythos42 avatar Mar 28 '17 21:03 rythos42