Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Chosen or any other custom element #77

Open
Alexwijn opened this issue Mar 5, 2015 · 2 comments
Open

Support for Chosen or any other custom element #77

Alexwijn opened this issue Mar 5, 2015 · 2 comments
Labels

Comments

@Alexwijn
Copy link

Alexwijn commented Mar 5, 2015

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.

@claviska
Copy link
Collaborator

claviska commented Mar 5, 2015

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

@rythos42
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants